From 4bfef6ed18af02ac191fbea9adb70a9524dfb13c Mon Sep 17 00:00:00 2001 From: BalajiChowdaryUnnam Date: Thu, 23 Jul 2026 10:13:15 +0530 Subject: [PATCH 1/2] Fix PR title regex to allow digits in Jira project keys Jira project keys can contain digits (e.g. XB10, XB7, TCHXB7, XER10) as long as they start with a letter. The previous regex [A-Z]+ only matched letter-only keys like RDKB/SHARMAN, so valid tickets such as XB10-2917 were incorrectly flagged. Updated to [A-Z][A-Z0-9]+ for both single and multi-ticket titles. --- .github/workflows/pr-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 09283a8..a2165dd 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -32,7 +32,7 @@ jobs: # ========================================== # 1. TITLE: TICKET-123 [TICKET-456] : description # ========================================== - if ! echo "$PR_TITLE" | grep -qE '^[A-Z]+-[0-9]+( [A-Z]+-[0-9]+)* *: *[^[:space:]]+'; then + if ! echo "$PR_TITLE" | grep -qE '^[A-Z][A-Z0-9]+-[0-9]+( [A-Z][A-Z0-9]+-[0-9]+)* *: *[^[:space:]]+'; then ISSUES+="- **Title:** \`${SAFE_TITLE}\` — expected \`TICKET-123 : description\`\n" ISSUES+=" _(Multiple tickets OK: \`RDKCOM-5492 RDKBDEV-3336 : ...\` | Include US ticket + subtask for user-stories)_\n" fi From 7c12a804d4619fd6475a84b015af11f386049f21 Mon Sep 17 00:00:00 2001 From: BalajiChowdaryUnnam Date: Thu, 23 Jul 2026 10:19:01 +0530 Subject: [PATCH 2/2] Clarify title comment: space-separated tickets, no literal brackets --- .github/workflows/pr-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index a2165dd..cb97d64 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -30,7 +30,7 @@ jobs: SAFE_TITLE=$(echo "$PR_TITLE" | sed "s/\`/'/g") # ========================================== - # 1. TITLE: TICKET-123 [TICKET-456] : description + # 1. TITLE: TICKET-123 : description (multiple tickets allowed, space-separated, e.g. "TICKET-123 TICKET-456 : description") # ========================================== if ! echo "$PR_TITLE" | grep -qE '^[A-Z][A-Z0-9]+-[0-9]+( [A-Z][A-Z0-9]+-[0-9]+)* *: *[^[:space:]]+'; then ISSUES+="- **Title:** \`${SAFE_TITLE}\` — expected \`TICKET-123 : description\`\n"