.github/workflows/enforce_conventional_commits.yml
name: Conventional Commits
on:
pull_request:
branches:
- main
jobs:
commit-lint:
name: Verify Conventional Commits
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Check Commit Messages
uses: wagoid/commitlint-github-action@v6
with: { configFile: .commitlintrc.yml }