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>
13 lines
424 B
JSON
13 lines
424 B
JSON
{
|
|
"forgejoUrl": "https://git.pelagiamarine.com",
|
|
"repo": "shad0w/pelagia-portal",
|
|
"token": "<forgejo token with write:repository,write:issue>",
|
|
"workDir": "/home/shad0w/pelagia-pr-review",
|
|
"baseBranch": "master",
|
|
"prBranchPrefix": "claude/",
|
|
"marker": "claude-review:",
|
|
"maxPrsPerRun": 1,
|
|
"maxCommentsPerPr": 20,
|
|
"claudeExe": "/home/shad0w/.nvm/versions/node/<ver>/bin/claude",
|
|
"claudeMaxTurns": 150
|
|
}
|