feat: use commitlint to validate commit messages #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Conventional Commits | |
# Modeled after https://github.com/oss-review-toolkit/ort | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
commit-lint: | |
name: Validate commits | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: { fetch-depth: 0 } | |
- name: Check Commit Messages | |
uses: wagoid/commitlint-github-action@v6 | |
with: { configFile: .commitlintrc.yml } |