GRM-20: fix: enforce GRM-N: conventional on master commits and PR titles
CI / lint (push) Has been cancelled
CI / unit-tests (push) Has been cancelled
CI / molecule-tests (push) Has been cancelled

This commit is contained in:
Emil Simeonov
2026-06-19 15:10:32 +02:00
parent 129cfe3c79
commit 3048d7ade7
4 changed files with 62 additions and 16 deletions
+9
View File
@@ -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 \