Skip to content

chore: add GH commit conventions check #6

chore: add GH commit conventions check

chore: add GH commit conventions check #6

name: Commit conventions
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
jobs:
commit-messages:
name: Commit messages
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Check commit messages
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: .github/scripts/check-commit-messages "$BASE_SHA" "$HEAD_SHA" "$PR_NUMBER"