]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
script/ptl-tool: add PR label to QA run metadata 70133/head
authorPatrick Donnelly <pdonnell@ibm.com>
Sat, 11 Jul 2026 18:12:09 +0000 (14:12 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Sat, 11 Jul 2026 18:22:27 +0000 (14:22 -0400)
To easily open all the PRs associated with the QA run (assuming those
PRs are still labeled).

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/script/ptl-tool.py

index 02cd58065f05fdbbb0ba6ee65ceae1012a821661..915a6fb748bebeeec3cb0a9accd8dc9d5f505b3d 100755 (executable)
@@ -106,6 +106,7 @@ REDMINE_CUSTOM_FIELD_ID_QA_RUNS = 27
 REDMINE_CUSTOM_FIELD_ID_QA_RELEASE = 28
 REDMINE_CUSTOM_FIELD_ID_QA_TAGS = 3
 REDMINE_CUSTOM_FIELD_ID_GIT_BRANCH = 29
+REDMINE_CUSTOM_FIELD_ID_CEPH_PR_LABEL = 45
 REDMINE_ENDPOINT = "https://tracker.ceph.com"
 REDMINE_TRACKER_ID_BACKPORT = 9
 REDMINE_STATUS_ID_REJECTED = 6
@@ -1528,6 +1529,8 @@ def manage_qa_tracker(args, R, session, branch, prs, tag, qa_tracker_description
         custom_fields.append({'id': REDMINE_CUSTOM_FIELD_ID_QA_RELEASE, 'value': args.qa_release})
     if args.qa_tags:
         custom_fields.append({'id': REDMINE_CUSTOM_FIELD_ID_QA_TAGS, 'value': args.qa_tags})
+    if args.pr_label:
+        custom_fields.append({'id': REDMINE_CUSTOM_FIELD_ID_CEPH_PR_LABEL, 'value': args.pr_label})
 
     if not args.no_tag and tag:
         origin_url = f'{BASE_PROJECT}/{CI_REPO}/commits/{tag.name}'