From ec8ce6ecd6ca09271893a1c55fa0d43dcb21dea3 Mon Sep 17 00:00:00 2001 From: Restioson Date: Mon, 28 Oct 2024 14:11:52 +0200 Subject: [PATCH] fixup! chore(ci): lint for bang commits (fixup, squash, drop, edit) --- .github/workflows/testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 0a8e5b3..7cbad6c 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -137,4 +137,4 @@ jobs: - name: Disallow bang commits run: | git log --pretty=format:%s origin/main..HEAD | grep "fixup!|squash!|drop!|edit!" - if [ $? -ne 0 ]; then echo "Found bang commit (or error) - rebase required before merge"; exit 1; fi + if [ $? -ne 1 ]; then echo "Found bang commit (or error) - rebase required before merge"; exit 1; fi