From 750d4575ed51f093449ef8ba7c566c370f747153 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Fri, 8 May 2026 10:48:08 -0400 Subject: [PATCH] Add draft PR guard to skip reviews on draft PRs --- .github/workflows/claude-code-review.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yaml b/.github/workflows/claude-code-review.yaml index 37081dc..dd78d3f 100644 --- a/.github/workflows/claude-code-review.yaml +++ b/.github/workflows/claude-code-review.yaml @@ -21,6 +21,7 @@ permissions: jobs: claude-review: + if: github.event.pull_request.draft == false runs-on: ubuntu-latest timeout-minutes: 10 steps: @@ -55,4 +56,4 @@ jobs: Only post GitHub comments — do not submit review text as messages. claude_args: | - --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)" + --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)" \ No newline at end of file