feat(automation): watcher that addresses claude-review: comments on Claude PRs #129

Merged
shad0w merged 1 commit from claude/busy-boyd-b16092 into master 2026-06-24 10:08:01 +00:00
Owner

Sibling to claude-issue-watcher.sh: polls open Claude-raised PRs (head
branch under claude/, or labelled claude-pr) for review comments carrying
the marker claude-review: — in the PR conversation, review summaries, or
inline on-file comments — and runs headless Claude Code on the PR's own
branch to address them, pushing the follow-up commit(s) to the same branch.

  • Authorization gate: only repo collaborators (write access) + the owner can
    trigger it; the bot's own comments are ignored.
  • Idempotent: handled comments are tracked by a hidden marker on the bot's
    acknowledgements, so the 10-min poll never redoes a comment.
  • Own clone (~/pelagia-pr-review), config, and lock so it never races the
    issue watcher. Token needs write:repository + write:issue.

Adds the script, an example config, .gitignore entries for the live
config/lock, and an automation/README.md section with deploy + cron steps.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

What & why

Checklist

  • Tests added or updated for this change — or it is a docs/config/automation-only PR (tests not applicable). Model: the integration test on claude/issue-12 (prod-mirror DB, raw-SQL inserts, prefix-isolated, cleans up after itself).
  • Docs updated where relevant (App/README.md, App/CLAUDE.md, Docs/, automation/README.md, CHANGELOG.md).
  • pnpm type-check is clean and pnpm test passes (the PR check enforces both).
  • Verified the change (how: unit/integration tests, or a dev server on port 3100 against the test DB).
Sibling to claude-issue-watcher.sh: polls open Claude-raised PRs (head branch under claude/, or labelled claude-pr) for review comments carrying the marker `claude-review:` — in the PR conversation, review summaries, or inline on-file comments — and runs headless Claude Code on the PR's own branch to address them, pushing the follow-up commit(s) to the same branch. - Authorization gate: only repo collaborators (write access) + the owner can trigger it; the bot's own comments are ignored. - Idempotent: handled comments are tracked by a hidden marker on the bot's acknowledgements, so the 10-min poll never redoes a comment. - Own clone (~/pelagia-pr-review), config, and lock so it never races the issue watcher. Token needs write:repository + write:issue. Adds the script, an example config, .gitignore entries for the live config/lock, and an automation/README.md section with deploy + cron steps. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> <!-- All changes land via PR — no direct pushes to master. --> ## What & why <!-- Brief summary of the change and the motivation / linked issue (e.g. Closes #NN). --> ## Checklist - [ ] **Tests** added or updated for this change — or it is a docs/config/automation-only PR (tests not applicable). Model: the integration test on `claude/issue-12` (prod-mirror DB, raw-SQL inserts, prefix-isolated, cleans up after itself). - [ ] **Docs** updated where relevant (App/README.md, App/CLAUDE.md, Docs/, automation/README.md, CHANGELOG.md). - [ ] `pnpm type-check` is clean and `pnpm test` passes (the PR check enforces both). - [ ] Verified the change (how: unit/integration tests, or a dev server on port 3100 against the test DB). <!-- The "PR checks" workflow runs on every PR and hard-fails on: a code change with no test change, any type-check error, or any failing unit test. -->
shad0w added 1 commit 2026-06-24 09:52:47 +00:00
feat(automation): watcher that addresses claude-review: comments on Claude PRs
All checks were successful
PR checks / checks (pull_request) Successful in 47s
PR checks / integration (pull_request) Successful in 32s
7acd86e3dd
Sibling to claude-issue-watcher.sh: polls open Claude-raised PRs (head
branch under claude/, or labelled claude-pr) for review comments carrying
the marker `claude-review:` — in the PR conversation, review summaries, or
inline on-file comments — and runs headless Claude Code on the PR's own
branch to address them, pushing the follow-up commit(s) to the same branch.

- Authorization gate: only repo collaborators (write access) + the owner can
  trigger it; the bot's own comments are ignored.
- Idempotent: handled comments are tracked by a hidden marker on the bot's
  acknowledgements, so the 10-min poll never redoes a comment.
- Own clone (~/pelagia-pr-review), config, and lock so it never races the
  issue watcher. Token needs write:repository + write:issue.

Adds the script, an example config, .gitignore entries for the live
config/lock, and an automation/README.md section with deploy + cron steps.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
shad0w merged commit 70152b0a5e into master 2026-06-24 10:08:01 +00:00
Sign in to join this conversation.
No description provided.