Skip to content

Commit 79f5eb5

Browse files
authored
Fix exclusion of Dependabot commit message checks (#41)
To ignore Dependabot commits from our commit message checks we need to filter out the GitHub actor, rather than ignoring branches. ignoring branches does not work in the way we want it to for pull requests, as [it only looks at the base branch][1] [1]: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags
1 parent baf2d86 commit 79f5eb5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/check-commit-message.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ on: # yamllint disable-line rule:truthy
77
- edited
88
- reopened
99
- synchronize
10-
branches-ignore:
11-
- '*dependabot/github_actions/**'
1210
push:
13-
branches-ignore:
14-
- '*dependabot/github_actions/**'
1511

1612
jobs:
1713
check-commit-message-style:
14+
if: github.actor!= 'dependabot[bot]'
1815
name: Check commit message style
1916
runs-on: ubuntu-latest
2017
steps:

0 commit comments

Comments
 (0)