From 2d0539e98916e713ac2f386ddec84116a738e170 Mon Sep 17 00:00:00 2001 From: Restioson Date: Mon, 28 Oct 2024 13:57:37 +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 d16e4af..3e8251b 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -136,5 +136,5 @@ jobs: # exit with a status of 0 regardless of whether there is a match ( - name: Disallow bang commits run: | - git log --pretty=format:%s origin/main..HEAD | grep -zv fixup!|squash!|drop!|edit! + git log --pretty=format:%s origin/main..HEAD | grep -zv "fixup!|squash!|drop!|edit!" if [ $? -eq 1 ]; then echo "Found bang commit - rebase required before merge"; exit 1 fi