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 a9f6c88  Add a link to the previous round of voting
a9f6c88 is described below

commit a9f6c88dd7041f1b67bd15849bd938d75bcc4998
Author: Sean B. Palmer <s...@miscoranda.com>
AuthorDate: Mon Jun 30 19:52:50 2025 +0100

    Add a link to the previous round of voting
---
 atr/routes/vote.py | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/atr/routes/vote.py b/atr/routes/vote.py
index e3de895..7b297f1 100644
--- a/atr/routes/vote.py
+++ b/atr/routes/vote.py
@@ -527,12 +527,22 @@ def _tabulate_vote_resolution(
     thread_id: str,
 ) -> str:
     """Generate a resolution email body."""
-    body = [f"Dear {committee.display_name} participants,", ""]
+    committee_name = committee.display_name
+    if release.podling_thread_id:
+        committee_name = "Incubator"
+    body = [f"Dear {committee_name} participants,", ""]
     outcome = "passed" if passed else "failed"
     body.append(f"The vote on {release.project.name} {release.version} 
{outcome}.")
     body.append("")
 
-    body.append("The vote thread is archived at the following URL:")
+    if release.podling_thread_id:
+        body.append("The previous round of voting is archived at the following 
URL:")
+        body.append("")
+        
body.append(f"https://lists.apache.org/thread/{release.podling_thread_id}";)
+        body.append("")
+        body.append("The current vote thread is archived at the following 
URL:")
+    else:
+        body.append("The vote thread is archived at the following URL:")
     body.append("")
     body.append(f"https://lists.apache.org/thread/{thread_id}";)
     body.append("")


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@tooling.apache.org
For additional commands, e-mail: commits-h...@tooling.apache.org

Reply via email to