Add draft PR guard to skip reviews on draft PRs

This commit is contained in:
Adam Moussa 2026-05-08 10:48:08 -04:00
parent f949881bba
commit 750d4575ed

View file

@ -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:*)"