Skip to content

fix(review-pr): specify PUT method for dismiss API call - #1407

Merged
max-sixty merged 1 commit into
mainfrom
hourly/review-22849973502
Mar 9, 2026
Merged

max-sixty merged 1 commit into
mainfrom
hourly/review-22849973502

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Summary

Evidence

Run 22845135867 on the same fork PR (#1404) shows both methods tried:

  • POST → 404
  • PUT → success (state: DISMISSED)

This supersedes the deferred-approval approach in #1406, which works as a workaround but adds unnecessary complexity.

Test plan

  • Verify next review session that encounters CI failure uses PUT and successfully dismisses
  • Confirm no regression on same-repo PRs

Closes #1405

🤖 Generated with Claude Code

The dismiss endpoint requires PUT, not POST (the gh api default).
Sessions using POST get 404, leaving stale approvals on PRs with
failing CI. This was misdiagnosed in #1405 as a fork PR limitation,
but PUT works fine on fork PRs — confirmed by run 22845135867 which
successfully dismissed on the same fork PR.

Closes #1405

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@max-sixty
max-sixty merged commit 00dd46e into main Mar 9, 2026
22 checks passed
@max-sixty
max-sixty deleted the hourly/review-22849973502 branch March 9, 2026 15:46
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.

review-pr: cannot dismiss approval on fork PRs, leaving stale approval when CI fails

2 participants