Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,24 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: '20'

- name: Install commitlint
run: npm install --save-dev @commitlint/cli @commitlint/config-conventional

- name: Validate Dependabot PR title
if: startsWith(github.event.pull_request.head.ref, 'dependabot/')
run: echo "${{ github.event.pull_request.title }}" | npx commitlint --extends @commitlint/config-conventional --verbose
env:
HUSKY: 0

- name: Validate commit messages
if: ${{ !startsWith(github.event.pull_request.head.ref, 'dependabot/') }}
run: |
npx commitlint \
--extends @commitlint/config-conventional \
--from ${{ github.event.pull_request.base.sha }} \
--to ${{ github.event.pull_request.head.sha }} \
--verbose
Expand Down