GRM-58: fix: enforce commit message convention on master with CI validation

This commit is contained in:
2026-06-22 10:12:01 +00:00
parent 3ae263fb00
commit 7d3cf999d6
6 changed files with 49 additions and 6 deletions
+18
View File
@@ -39,6 +39,24 @@ jobs:
id: check
run: python3 scripts/ci/detect_release_commit.py
validate-commit-msg:
needs: [detect-type]
if: needs.detect-type.outputs.is-release == 'false'
runs-on: docker
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install dependencies
run: python3 -m pip install --break-system-packages click python-dotenv
- name: Validate latest commit message
env:
PYTHONPATH: .:src
run: |
git log -1 --format=%B > /tmp/commit-msg.txt
python3 scripts/ci/validate_commit_msg.py /tmp/commit-msg.txt --branch master
release:
needs: [detect-type]
if: needs.detect-type.outputs.is-release == 'false'