Repository navigation
Add PR watcher scripts to pr-tools - #8
Merged
Merged
Conversation
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>
bscanlan
approved these changes
Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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