EINT-26 Enforce PR title to contain ticket ID #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |