From 434956af0fb58807cc646013f3cd9e2fec536f4e Mon Sep 17 00:00:00 2001 From: Yaron Kaikov Date: Thu, 11 Dec 2025 08:40:10 +0200 Subject: [PATCH] Add JIRA issue validation to backport PR fixes check Extend the Fixes validation pattern to also accept JIRA issue references (format: [A-Z]+-\d+) in addition to GitHub issue references. This allows backport PRs to reference JIRA issues in the format 'Fixes: PROJECT-123'. Fixes: https://github.com/scylladb/scylladb/issues/27571 Closes scylladb/scylladb#27572 (cherry picked from commit 3dfa5ebd7f451d944f0c723034cd1a9125a68b55) Closes scylladb/scylladb#27601 --- .github/workflows/backport-pr-fixes-validation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/backport-pr-fixes-validation.yaml b/.github/workflows/backport-pr-fixes-validation.yaml index 5b04808e35..203381821f 100644 --- a/.github/workflows/backport-pr-fixes-validation.yaml +++ b/.github/workflows/backport-pr-fixes-validation.yaml @@ -18,7 +18,7 @@ jobs: // Regular expression pattern to check for "Fixes" prefix // Adjusted to dynamically insert the repository full name - const pattern = `Fixes:? (?:#|${repo.replace('/', '\\/')}#|https://github\\.com/${repo.replace('/', '\\/')}/issues/)(\\d+)`; + const pattern = `Fixes:? ((?:#|${repo.replace('/', '\\/')}#|https://github\\.com/${repo.replace('/', '\\/')}/issues/)(\\d+)|([A-Z]+-\\d+))`; const regex = new RegExp(pattern); if (!regex.test(body)) {