Skip to content

Commit

Permalink
fixup! chore(ci): lint for bang commits (fixup, squash, drop, edit)
Browse files Browse the repository at this point in the history
  • Loading branch information
Restioson committed Oct 28, 2024
1 parent 9e5eef2 commit 19061ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,6 @@ jobs:
# - We use -v here, which inverts the match, because we want to output an exit status of 1 when a match _is_
# found (usually 0 is for a match)
# - We use a -z here, which makes \0 be the line separator, because if feeding multiline text into grep, it will
# exit with a status of 0 regardless of whether there is a match (
# exit with a status of 0 regardless of whether there is a match (so, -z makes it treat the input as one line)
- name: Disallow bang commits
run: git log --pretty=format:%s origin/main..HEAD | grep -zv "fixup!|squash!|drop!|edit!"
run: git log --pretty=format:%s origin/main..HEAD | grep -zv 'fixup!|squash!|drop!|edit!'

0 comments on commit 19061ee

Please sign in to comment.