Do not check for `fixup!` commit in draft PRs
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 11 Mar 2021 11:43:30 +0000 (12:43 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 11 Mar 2021 11:43:30 +0000 (12:43 +0100)
.github/workflows/pull_request.yml

index 03fc8844fce731f461ddd50f7885730adf3a9364..21d8ba3bc270089c6b3c90bfddb0e62d986c1325 100644 (file)
@@ -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|$))'