A simple GitHub Action to validate commit messages against a conventional format like type: message
.
Each commit message must match the pattern:
<type>: <message>
Examples:
fix: correct typo in README
feat: add new export feature
Add the following to your .github/workflows/commit-lint.yml
:
name: Commit Lint
on:
push:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./ # assumes this action is in the same repo
MIT License