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-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new 4cea3c9  Add the tag or revision to the default vote thread subject
4cea3c9 is described below

commit 4cea3c9ffae64b2a7d12859e3e6b1c00a254b7e1
Author: Sean B. Palmer <[email protected]>
AuthorDate: Wed Dec 3 14:39:38 2025 +0000

    Add the tag or revision to the default vote thread subject
---
 atr/get/voting.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/atr/get/voting.py b/atr/get/voting.py
index fd686f7..99d5855 100644
--- a/atr/get/voting.py
+++ b/atr/get/voting.py
@@ -63,8 +63,14 @@ async def selected_revision(
         if release.release_policy and (release.release_policy.min_hours is not 
None):
             min_hours = release.release_policy.min_hours
 
+        revision_obj = await data.revision(release_name=release.name, 
number=revision).get()
+        if revision_obj and revision_obj.tag:
+            subject_suffix = f" (tag: {revision_obj.tag})"
+        else:
+            subject_suffix = f" (revision {revision})"
+
         # TODO: Add the draft revision number or tag to the subject
-        default_subject = f"[VOTE] Release {release.project.display_name} 
{release.version}"
+        default_subject = f"[VOTE] Release {release.project.display_name} 
{release.version}{subject_suffix}"
         default_body = await construct.start_vote_default(project_name)
 
         keys_warning = await _check_keys_warning(committee)


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

Reply via email to