.github/workflows/commit-lint.yml
name: Lint commit messages
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
commit-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v6
with:
configFile: .commitlintrc.mjs