Skip to content

Commit

Permalink
ci: 🔧 fix commmit linter gh action to be triggered against the latest…
Browse files Browse the repository at this point in the history
… commit only
  • Loading branch information
jooyoungseo committed Jan 24, 2024
1 parent f1babab commit f53251c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/commit-message-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ jobs:
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

0 comments on commit f53251c

Please sign in to comment.