Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions .github/workflows/claude-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,25 +176,20 @@ jobs:
# ── Phase 2: Authenticate & install CLI (before lockdown) ──────────

- name: Enforce PR is open (and not draft)
- name: Enforce PR is open
env:
PR_NUMBER: ${{ github.event.issue.number }}
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository }}
run: |
STATE=$(gh pr view "$PR_NUMBER" --repo "$REPO" --json state,isDraft --jq '.state')
DRAFT=$(gh pr view "$PR_NUMBER" --repo "$REPO" --json isDraft --jq '.isDraft')
STATE=$(gh pr view "$PR_NUMBER" --repo "$REPO" --json state --jq '.state')
echo "PR state: $STATE, draft: $DRAFT"
echo "PR state: $STATE"
if [ "$STATE" != "OPEN" ]; then
echo "::error::PR must be OPEN (got $STATE)"
exit 1
fi
if [ "$DRAFT" = "true" ]; then
echo "::error::PR must not be draft"
exit 1
fi
- name: Exchange OIDC for GitHub App token
id: oidc-exchange
Expand Down
Loading