From a93dcb2776027bfcb385ae9dfddff249bdfd896b Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Mon, 9 Sep 2024 13:56:03 -0700 Subject: [PATCH] Make the Clippy Check CI action not comment on draft PRs --- .github/workflows/clippy-warnings-comment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/clippy-warnings-comment.yaml b/.github/workflows/clippy-warnings-comment.yaml index 05fe6161..fe4d3d33 100644 --- a/.github/workflows/clippy-warnings-comment.yaml +++ b/.github/workflows/clippy-warnings-comment.yaml @@ -3,11 +3,13 @@ name: Clippy Check on: pull_request: branches: [master] + types: [opened, reopened, synchronize, ready_for_review] jobs: clippy: name: Run Clippy runs-on: ubuntu-latest + if: ${{ !github.event.pull_request.draft }} permissions: contents: read pull-requests: write