GRM-20: fix: enforce GRM-N: conventional on master commits and PR titles
This commit is contained in:
@@ -21,6 +21,15 @@ jobs:
|
||||
fi
|
||||
|
||||
PR_TITLE="${{ github.event.pull_request.title }}"
|
||||
|
||||
# Validate PR title follows conventional commits so squash merge message is valid
|
||||
if ! echo "$PR_TITLE" | grep -qE '^(feat|fix|chore|docs|style|refactor|perf|test|ci|build|revert|BREAKING CHANGE)(\(.+\))?: .+'; then
|
||||
echo "ERROR: PR title must follow conventional commit format."
|
||||
echo " Expected: <type>: <description>"
|
||||
echo " Got: $PR_TITLE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
MERGE_TITLE="${TASK_ID}: ${PR_TITLE}"
|
||||
|
||||
curl -X POST \
|
||||
|
||||
Reference in New Issue
Block a user