From: Patrick Donnelly Date: Sat, 11 Jul 2026 18:12:09 +0000 (-0400) Subject: script/ptl-tool: add PR label to QA run metadata X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a6ebddf3c586800fa74f7c854d5d8021ae996dad;p=ceph.git script/ptl-tool: add PR label to QA run metadata To easily open all the PRs associated with the QA run (assuming those PRs are still labeled). Signed-off-by: Patrick Donnelly --- diff --git a/src/script/ptl-tool.py b/src/script/ptl-tool.py index 02cd58065f0..915a6fb748b 100755 --- a/src/script/ptl-tool.py +++ b/src/script/ptl-tool.py @@ -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}'