Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/pr-title-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: PR Title Check

on:
pull_request:
types: [opened, edited, synchronize, reopened]

jobs:
check-title:
runs-on: ubuntu-latest
steps:
- name: Check for Linear ticket ID
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
if echo "$PR_TITLE" | grep -qPi '^[A-Z]+[-\s]\d+\b'; then
echo "PR title starts with a Linear ticket ID."
else
echo "::warning::PR title must start with a Linear ticket ID (e.g., \"ENG-123: Add feature\")"
exit 1
fi