Skip to content

Commit afacb2e

Browse files
ci(common): claude review on draft pr (#2169)
1 parent c5bb50b commit afacb2e

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/claude-review.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,25 +176,20 @@ jobs:
176176
177177
# ── Phase 2: Authenticate & install CLI (before lockdown) ──────────
178178

179-
- name: Enforce PR is open (and not draft)
179+
- name: Enforce PR is open
180180
env:
181181
PR_NUMBER: ${{ github.event.issue.number }}
182182
GH_TOKEN: ${{ github.token }}
183183
REPO: ${{ github.repository }}
184184
run: |
185-
STATE=$(gh pr view "$PR_NUMBER" --repo "$REPO" --json state,isDraft --jq '.state')
186-
DRAFT=$(gh pr view "$PR_NUMBER" --repo "$REPO" --json isDraft --jq '.isDraft')
185+
STATE=$(gh pr view "$PR_NUMBER" --repo "$REPO" --json state --jq '.state')
187186
188-
echo "PR state: $STATE, draft: $DRAFT"
187+
echo "PR state: $STATE"
189188
190189
if [ "$STATE" != "OPEN" ]; then
191190
echo "::error::PR must be OPEN (got $STATE)"
192191
exit 1
193192
fi
194-
if [ "$DRAFT" = "true" ]; then
195-
echo "::error::PR must not be draft"
196-
exit 1
197-
fi
198193
199194
- name: Exchange OIDC for GitHub App token
200195
id: oidc-exchange

0 commit comments

Comments
 (0)