Skip to content

Status-aware review footer (no 'Ready to approve' on merged/closed PRs)#12

Merged
shacharPash merged 1 commit into
mainfrom
feat-status-aware-review-footer
Jun 4, 2026
Merged

Status-aware review footer (no 'Ready to approve' on merged/closed PRs)#12
shacharPash merged 1 commit into
mainfrom
feat-status-aware-review-footer

Conversation

@shacharPash

Copy link
Copy Markdown
Owner

Follow-up to the status badges (#11): the footer submits a real Approve/Comment/Request-changes review to GitHub, so showing 'Ready to approve' on a merged or closed PR was wrong (those actions are invalid).

Now, for merged/closed PRs, the footer shows a calm non-actionable note instead — '🟣 This PR is merged — review actions don't apply.' (purple) / '🔴 This PR is closed …' (red) — plus a View on GitHub link. Open/Draft PRs keep the full review footer.

Verification

  • typecheck + 70 tests + build green
  • Verified live on cli/cli#13510 (merged): footer renders the status note, not the CTA; no console errors.

🤖 Generated with Claude Code

…losed PRs

The review footer submits an Approve/Comment/Request-changes review to GitHub,
but on a merged or closed PR those actions are invalid — yet it still showed the
green 'Ready to approve' CTA. Replace it, for merged/closed PRs, with a calm
non-actionable status note (purple for merged, red for closed) + a 'View on
GitHub' link. Open/Draft keep the full review footer.

Verified live on cli/cli#13510 (merged): footer shows 'This PR is merged —
review actions don't apply.' instead of the CTA. typecheck + build green, no
console errors.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@shacharPash shacharPash merged commit 6c22046 into main Jun 4, 2026
1 check passed
@shacharPash shacharPash deleted the feat-status-aware-review-footer branch June 4, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant