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)) {