| name | resolve-coderabbit-review |
| description | Use when addressing CodeRabbit review comments on a RoutePeek GitHub PR. |
Resolve CodeRabbit Review
Scope
Handle unresolved CodeRabbit review threads on the current PR. Keep responses and PR comments in English because RoutePeek is a public library.
Workflow
- Identify the PR:
- If the user provides a PR number, use it.
- Otherwise run
gh pr view --json number,headRefName,baseRefName,url,isDraft.
- Stop on draft PRs unless the user explicitly asks to continue.
- Fetch unresolved review threads with GitHub GraphQL.
- Keep only threads where the first comment author is
coderabbitai[bot] or coderabbitai.
- Skip threads already handled with comments containing:
✅ Addressed in
Thanks for the suggestion. After review, we've decided not to apply this change.
- Sort by risk: security/crash, bug, maintainability, style.
- For each actionable comment:
- Read the target file and nearby code.
- Apply only focused changes that match existing project patterns.
- Prefer imports over inline fully-qualified Kotlin names.
- Keep public APIs compatible between
:routepeek and :routepeek-noop.
- Verify relevant changes:
- Normal code changes:
./gradlew :app:assembleDebug build.
- Publishing changes: also
./gradlew publishToMavenLocal.
- Commit accepted fixes with compact English messages and push.
- Reply to the CodeRabbit thread:
- Accepted:
✅ Addressed in https://github.com/easyhooon/RoutePeek/commit/<hash>
- Declined: ask the user before posting the decline reason.
- Resolve the handled review thread through GitHub GraphQL.
- Post or update a short PR summary comment if multiple threads were handled.
Declines
Do not decline automatically. Present the comment, file, severity, and concrete reason to the user first. After approval, reply in English with a concise reason.
Final Report
Report PR number, applied count, declined count, commits, verification commands, and any remaining unresolved threads.