This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git


The following commit(s) were added to refs/heads/main by this push:
     new 569b01e  Improve the formatting of the command to list releases
569b01e is described below

commit 569b01ef62dc4e73d6269606d86b28c224917d1d
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon Jul 7 19:27:04 2025 +0100

    Improve the formatting of the command to list releases
---
 client/atr | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/client/atr b/client/atr
index e500428..248dbda 100755
--- a/client/atr
+++ b/client/atr
@@ -449,13 +449,19 @@ def releases_display(result: dict[str, Any]) -> None:
         return
 
     print(f"Total releases: {count}")
-    print(f"  {'Version':<12} {'Phase':<25} {'Created'}")
+    print(f"  {'Version':<24} {'Phase':<11} {'Created'}")
     for release in releases:
         version = release.get("version", "Unknown")
         phase = release.get("phase", "Unknown")
+        phase_short = {
+            "release_candidate_draft": "draft",
+            "release_candidate": "candidate",
+            "release_preview": "preview",
+            "release": "finished",
+        }.get(phase, "unknown")
         created = release.get("created")
         created_formatted = timestamp_format(created) if created else "Unknown"
-        print(f"  {version:<12} {phase:<25} {created_formatted}")
+        print(f"  {version:<24} {phase_short:<11} {created_formatted}")
 
 
 def main() -> None:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to