Skip to content

docs: add CONTRIBUTING.md file #9

docs: add CONTRIBUTING.md file

docs: add CONTRIBUTING.md file #9

name: "Lint Commit Messages"
on: [push, pull_request]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetches the entire history which is necessary for commitlint to work correctly
- name: Lint Commit Messages
uses: wagoid/commitlint-github-action@v4
with:
configFile: './commitlint.config.js'
token: ${{ secrets.GITHUB_TOKEN }}
failOnWarnings: 'false' # Set to true if you want warnings to cause the action to fail
# Add this line to check only the latest commit
firstParent: true