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 5001b6b Validate release phase on manual resolution
5001b6b is described below
commit 5001b6b13924566b2cf7ac0de4e503d46916de60
Author: Sean B. Palmer <[email protected]>
AuthorDate: Tue Jan 27 17:06:14 2026 +0000
Validate release phase on manual resolution
---
atr/storage/writers/vote.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/atr/storage/writers/vote.py b/atr/storage/writers/vote.py
index 61199a8..3084909 100644
--- a/atr/storage/writers/vote.py
+++ b/atr/storage/writers/vote.py
@@ -266,6 +266,8 @@ class CommitteeMember(CommitteeParticipant):
) -> str:
# Attach the existing release to the session
release = await self.__data.merge(release)
+ if release.phase != sql.ReleasePhase.RELEASE_CANDIDATE:
+ raise ValueError("Release is not in the candidate phase")
if vote_result == "passed":
release.phase = sql.ReleasePhase.RELEASE_PREVIEW
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]