fix: skip draft PRs, trigger on ready_for_review

This commit is contained in:
Saoud Rizwan
2025-12-28 12:01:13 -08:00
parent f1d8ca423d
commit 63c63f38f5
+3 -3
View File
@@ -2,7 +2,7 @@ name: Claude PR Review
on:
pull_request:
types: [opened]
types: [opened, ready_for_review]
# Manual trigger for backfilling existing PRs. Run from terminal:
# gh workflow run claude-pr-review.yml -f pr_number=1234
# Or batch process open PRs:
@@ -19,9 +19,9 @@ on:
jobs:
claude-pr-review:
# Runs on PR opened or manual trigger for backfilling
# Runs on PR opened/ready_for_review (skips drafts) or manual trigger for backfilling
if: |
github.event_name == 'pull_request' ||
(github.event_name == 'pull_request' && github.event.pull_request.draft == false) ||
github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest