Skip to content

fix(pr-status): name a request-review that waiting cannot clear - #169

Merged
CybotTM merged 1 commit into
mainfrom
feat/watch-names-unsatisfiable-review
Aug 11, 2026
Merged

fix(pr-status): name a request-review that waiting cannot clear#169
CybotTM merged 1 commit into
mainfrom
feat/watch-names-unsatisfiable-review

Conversation

@CybotTM

@CybotTM CybotTM commented Aug 11, 2026

Copy link
Copy Markdown
Member

--watch exits on request-review, which is correct while a review can still arrive. Once the bot has failed twice on the head it cannot — a quota ceiling does not clear by waiting — so every re-arm returns instantly with the same line, and the second one teaches the operator nothing.

The script already distinguishes that state: copilot_error_count >= 2 is what selects the do not keep re-requesting advice. It simply did not surface it at the moment the operator decides whether to re-arm. Now the ACTIONABLE line says the state is unsatisfiable and names the watch that does move:

ACTIONABLE: request-review (UNSATISFIABLE — the review bot has failed 2x on this head; re-arming this watch returns immediately. Review the diff yourself, or watch the checks instead: gh pr checks 39 --repo owner/name --watch)

Found the hard way: a session re-armed this watch three times before switching instrument by hand.

Verified with bash -n and by running the changed script against a live PR — the non-exhausted paths are untouched (the run took the check failed branch).

Came from /retro: yes.

Copilot AI lite review requested due to automatic review settings August 11, 2026 10:08
@github-actions github-actions Bot added the skill label Aug 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

`--watch` exits on request-review, which is right while a review can still
arrive. When the bot has failed twice on the head it cannot: a quota ceiling
does not clear by waiting, so every re-arm of the watch returns instantly with
the same line and the operator learns nothing from the second one.

The script already knows this state — copilot_error_count >= 2 is what selects
the "do not keep re-requesting" advice — it just did not say so at the point
where the decision to re-arm is made. It does now, and it names the watch that
does move instead: gh pr checks --watch.

Found in a session that re-armed this watch three times before switching
instrument by hand.

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
@CybotTM
CybotTM force-pushed the feat/watch-names-unsatisfiable-review branch from ad976ba to f796fff Compare August 11, 2026 10:10
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@CybotTM

CybotTM commented Aug 11, 2026

Copy link
Copy Markdown
Member Author

Copilot failed twice on f796fff, so read by hand — which is, fittingly, exactly the state this change teaches the watcher to name.

The diff splits request-review out of the shared case arm and, when copilot_error_count >= 2, prints why re-arming is pointless plus the command that watches something that does move. Every other action keeps its previous line verbatim, and the non-exhausted request-review path prints exactly what it printed before.

Checked: bash -n clean, shellcheck green in CI, and the script was run against a live PR — it took the check failed branch and behaved unchanged, so the common path is untouched. The counter it keys on (copilot_error_count) is already in the snapshot and already selects the do not keep re-requesting advice; this only surfaces it where the operator decides whether to wait again.

Recorded plainly: no human has read this.

@CybotTM
CybotTM merged commit c0b7d32 into main Aug 11, 2026
23 of 25 checks passed
@CybotTM
CybotTM deleted the feat/watch-names-unsatisfiable-review branch August 11, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants