Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Commit 19b6b03

Browse files
EINT-26 Ensure PR title contains ticket ID (#9) (#21)
Co-authored-by: Evolt DevOps team <devops@evolt.dev>
1 parent f11ef97 commit 19b6b03

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: check-pr-title
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- develop
8+
9+
jobs:
10+
check-title:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Validate PR title
14+
env:
15+
TITLE: ${{ github.event.pull_request.title }}
16+
run: |
17+
echo "PR Title: ${TITLE}"
18+
if [[ ! "${TITLE}" =~ [A-Z]+-[0-9]+ ]]
19+
then
20+
echo "❌ PR title must include a ticket ID (e.g. PROJ-123)"
21+
exit 1
22+
fi

0 commit comments

Comments
 (0)