Skip to content

Commit

Permalink
ci: validate PR title with commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
majori committed Sep 24, 2024
1 parent 2936898 commit 1f427f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ jobs:
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: npx commitlint --last --verbose

- name: Validate PR title with commitlint
if: github.event_name == 'pull_request'
run: echo '${{ github.event.pull_request.title }}' | npx commitlint --verbose

0 comments on commit 1f427f7

Please sign in to comment.