From 218c5da04100480bfeea3f6b064a67e3ae74a1d3 Mon Sep 17 00:00:00 2001 From: Jack Spagnoli Date: Wed, 22 Apr 2026 12:57:18 +0000 Subject: [PATCH 1/2] blocks aea-0000 --- .github/workflows/pr_title_check.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr_title_check.yml b/.github/workflows/pr_title_check.yml index f26e1f9..514613b 100644 --- a/.github/workflows/pr_title_check.yml +++ b/.github/workflows/pr_title_check.yml @@ -29,10 +29,15 @@ jobs: env: PR_TITLE: ${{ github.event.pull_request.title }} run: | - if [[ "$PR_TITLE" =~ ^.*:.*\[([A-Z]+-[0-9]+|dependabot)\].*-.*$ ]]; then - echo "PR title contains ticket or dependabot reference." + if [[ "$PR_TITLE" =~ ^.*:.*\[([A-Z]+-0000)\].*-.*$ ]]; then + echo "PR title uses AEA-0000 placeholder. Please use 'adhoc' instead of 'AEA-0000' for adhoc changes." + exit 1 + fi + + if [[ "$PR_TITLE" =~ ^.*:.*\[([A-Z]+-[0-9]+|dependabot|adhoc)\].*-.*$ ]]; then + echo "PR title contains ticket reference, was raised by dependabot or is an adhoc change." else - echo "PR title does not contain ticket or dependabot reference." + echo "PR title does not contain ticket reference, was not raised by dependabot, and is not an adhoc change." exit 1 fi @@ -42,7 +47,7 @@ jobs: env: PR_TITLE: ${{ github.event.pull_request.title }} run: | - if [[ "$PR_TITLE" =~ ^.*:.*\[([A-Z]+-[0-9]+|dependabot)\].*-.*$ ]]; then + if [[ "$PR_TITLE" =~ ^.*:.*\[([A-Z]+-[0-9]+|dependabot|adhoc)\].*-.*$ ]]; then TICKET_REF="${BASH_REMATCH[1]}" echo "Extracted ticket reference: $TICKET_REF" echo "TICKET_REF=$TICKET_REF" > "$GITHUB_OUTPUT" From 844852b8114b2fec4a2f88ebfa18360dcca5a78c Mon Sep 17 00:00:00 2001 From: Jack Spagnoli Date: Wed, 22 Apr 2026 13:02:05 +0000 Subject: [PATCH 2/2] rewrite --- .github/workflows/pr_title_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_title_check.yml b/.github/workflows/pr_title_check.yml index 514613b..28988f1 100644 --- a/.github/workflows/pr_title_check.yml +++ b/.github/workflows/pr_title_check.yml @@ -37,7 +37,7 @@ jobs: if [[ "$PR_TITLE" =~ ^.*:.*\[([A-Z]+-[0-9]+|dependabot|adhoc)\].*-.*$ ]]; then echo "PR title contains ticket reference, was raised by dependabot or is an adhoc change." else - echo "PR title does not contain ticket reference, was not raised by dependabot, and is not an adhoc change." + echo "PR title does not contain ticket reference or 'adhoc' label." exit 1 fi