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 8c8a9e7  Make it possible to copy the first preview revision
8c8a9e7 is described below

commit 8c8a9e7aa362ab105221b6c872a32b739f6dc773
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon May 19 16:02:45 2025 +0100

    Make it possible to copy the first preview revision
---
 atr/routes/resolve.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/atr/routes/resolve.py b/atr/routes/resolve.py
index 41d089c..cd7f64d 100644
--- a/atr/routes/resolve.py
+++ b/atr/routes/resolve.py
@@ -24,6 +24,7 @@ import wtforms
 
 import atr.db as db
 import atr.db.models as models
+import atr.revision as revision
 import atr.routes as routes
 import atr.routes.compose as compose
 import atr.routes.finish as finish
@@ -123,6 +124,13 @@ async def selected_post(
                 success_message = "Vote marked as failed"
                 destination = compose.selected
 
+    description = "Create a preview revision from the last candidate draft"
+    async with revision.create_and_manage(project_name, release.version, 
session.uid, description=description) as (
+        _new_revision_dir,
+        _new_revision_number,
+    ):
+        pass
+
     error_message = await _send_resolution(session, release, vote_result, 
resolution_body)
     if error_message is not None:
         await quart.flash(error_message, "error")


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

Reply via email to