PR revisions
Apply review feedback to an existing PR.
Last updated
roark revise-pr 123 --repo owner/repo#Flow
- Fetch PR metadata, unresolved review threads, and relevant PR comments with GitHub GraphQL.
- Exclude prior Roark revision summary comments from planner input.
- Check out the PR head branch in an isolated managed workspace. The control checkout stays on its current branch.
- Create a numbered run directory at
.roark/runs/pr/<pr-number>/revision-<n>/. - Collect the PR description, comments, review threads, and linked issues. Give each feedback item a stable ID and decide how to handle it.
- Apply only items classified as
must-fix-current. The execution report must account for every planned item once. - Run one revision reviewer and optional fix/review passes in the revision workspace.
- Run verification in the revision workspace.
- On success, create one commit without
.roarkartifacts, push it to the PR branch, and post a summary comment. Internal plans, logs, reviews, and local paths stay local.
#Feedback classifications
must-fix-current: required fix for the current PR.already-addressed: feedback already satisfied.needs-human: requires maintainer decision or unavailable context.non-blocking: valid follow-up, not required for this PR.invalid-stale: no longer applicable.
#Limits
Roark rejects closed PRs, fork PR heads, and PRs whose head is the base or another shared branch. It also rejects a dirty control checkout unless you pass --yes. All changes happen in the managed workspace. Roark does not commit or push when the result is needs-human, no changes are needed, or verification fails.
Revision workspaces use the configured workspace settings and lifecycle hooks. Roark may reuse a clean workspace but rejects a dirty one.
#Commands
Run with an explicit verification command:
roark revise-pr 123 --repo owner/repo --verify "bun run check"Skip the terminal summary comment:
roark revise-pr 123 --repo owner/repo --no-comment