From 05f5f0c2e20e0077270136d7656c4824aa950629 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 11 Mar 2021 12:43:30 +0100 Subject: [PATCH] Do not check for `fixup!` commit in draft PRs --- .github/workflows/pull_request.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 03fc884..21d8ba3 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -25,6 +25,7 @@ jobs: checkAllCommitMessages: 'true' accessToken: ${{ secrets.GITHUB_TOKEN }} - name: Check for unsquashed `fixup!` commits. + if: ${{ ! github.event.pull_request.draft }} uses: gsactions/commit-message-checker@c61c81192182bbc0d5e41b4796e3b71684228c77 with: pattern: '^(?!fixup!(\s|$))' -- 2.20.1