Skip to content

Add PR watcher scripts to pr-tools - #8

Merged
MrDHat merged 3 commits into
mainfrom
pr-tools-watchers
Sep 18, 2026
Merged

MrDHat merged 3 commits into
mainfrom
pr-tools-watchers

Conversation

@MrDHat

@MrDHat MrDHat commented Sep 18, 2026

Copy link
Copy Markdown
Member

Why?

The create-pr skill ended at PR creation, so a session had no way to learn about new review comments, the merge, or CI turning red without polling GitHub in a loop. These watchers already existed but were never published alongside the skill that uses them.

How?

Ships three blocking watchers that each wait on one signal and print a resumable cursor when their window expires, plus a step that launches all three in the background once the PR URL is known.

Generated with Claude Code

MrDHat and others added 3 commits September 18, 2026 16:36
create-pr previously ended at `gh pr create`, so anything that happened
afterwards — a new review comment, the merge, CI going red — could only
be found by polling `gh pr view` in a loop.

Adds three blocking watchers and a step that launches them in the
background once the PR URL is known. Each caps at WATCH_MAX_WAIT=570s
and exits 3 with a resumable cursor rather than blocking forever, so
step 5 documents the resume contract: a PR that merges or gets reviewed
hours later is still caught on re-launch instead of silently missed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The four unicode escapes in the jq row-building filters had been written
out as raw control bytes. jq reads both the same way, so the tests passed
either way, but an invisible control character in a shell script is easy
for an editor, a copy-paste, or a git filter to silently eat — and it made
the file impossible to diff cleanly against the version it was ported from.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The five fixture PR URLs named a private repo. The mock gh dispatches on
the endpoint path, not on owner/repo, so the names carried no meaning —
they just came along with the port. Switched to the same placeholder the
sibling comment-watcher suite already uses.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@MrDHat
MrDHat merged commit a1639a2 into main Sep 18, 2026
3 checks passed
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.

2 participants