diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 09283a8..cb97d64 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -30,9 +30,9 @@ 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]+-[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