From b5c97c18a762787b0165371da5c7b78777cda9eb Mon Sep 17 00:00:00 2001 From: Evolt DevOps team Date: Wed, 25 Mar 2026 12:14:48 +0100 Subject: [PATCH] EINT-26 Enforce PR title to contain ticket ID --- .github/workflows/check-pr-title.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/check-pr-title.yaml diff --git a/.github/workflows/check-pr-title.yaml b/.github/workflows/check-pr-title.yaml new file mode 100644 index 000000000000..4dfc7e425f9d --- /dev/null +++ b/.github/workflows/check-pr-title.yaml @@ -0,0 +1,20 @@ +name: check-pr-title + +on: + pull_request: + branches: + - main + - develop + +jobs: + check-title: + runs-on: ubuntu-latest + steps: + - name: Validate PR title + run: | + TITLE="${{ github.event.pull_request.title }}" + echo "PR Title: $TITLE" + if [[ ! "$TITLE" =~ [A-Z]+-[0-9]+ ]]; then + echo "❌ PR title must include a ticket ID (e.g. PROJ-123)" + exit 1 + fi