Skip to content

Merge pull request #199 from Rebekah-Chuang:Rebekah-Chuang/issue194 #95

Merge pull request #199 from Rebekah-Chuang:Rebekah-Chuang/issue194

Merge pull request #199 from Rebekah-Chuang:Rebekah-Chuang/issue194 #95

# this workflow is triggered everytime a push is made to the repository(on any branch)
# it checks if the commit message follows the conventional commit format
# if not, the action will fail
name: lint-commit-messages
on:
[push]
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 }}
# Set to true if you want warnings to cause the action to fail
failOnWarnings: 'false'
# Add this line to check only the latest commit
firstParent: true