Skip to content

Commit bbaaaff

Browse files
committed
ci: skip AI review for draft PRs
Previously, the Claude Code PR Review workflow would run on all PRs including drafts. This wastes resources since draft PRs are still work-in-progress and not ready for review. Add a condition to skip the workflow when the PR is in draft state. The workflow will still run when the PR is marked ready for review via the ready_for_review event trigger. Release note: None Epic: None
1 parent 432dd73 commit bbaaaff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pr-analyzer-threestage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
claude-code-pr-review:
99
runs-on: ubuntu-latest
1010
timeout-minutes: 60
11-
if: "!startsWith(github.base_ref, 'release-') && !contains(github.event.pull_request.labels.*.name, 'O-No-AI-Review') && github.event.pull_request.merged == false"
11+
if: "!startsWith(github.base_ref, 'release-') && !contains(github.event.pull_request.labels.*.name, 'O-No-AI-Review') && !github.event.pull_request.merged && !github.event.pull_request.draft"
1212
permissions:
1313
contents: read
1414
pull-requests: write

0 commit comments

Comments
 (0)