Skip to content

Commit 0864bb3

Browse files
committed
chore: don't run commitlint on dependabot PRs
This fails the build when the commit is just a bit long, it's annoying. There's no need - we merge these PRs anyway.
1 parent 878f6e6 commit 0864bb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/commitlint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Enforce commit formatting
2-
on: [pull_request]
2+
on: [pull_request, push]
33
jobs:
44
run-commitlint-on-pr:
55
runs-on: ubuntu-latest
@@ -18,4 +18,5 @@ jobs:
1818
run: npm install
1919

2020
- name: Validate all commits from the PR
21+
if: ${{ github.event.pull_request.user.login != 'dependabot' }}
2122
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

0 commit comments

Comments
 (0)