docs(workflow): add reply and resolve step to PR feedback sweep#91
docs(workflow): add reply and resolve step to PR feedback sweep#91
Conversation
Add step 4 to the feedback sweep: reply explaining resolution, then resolve bot threads only (identified by user.type == "Bot"). Human reviewer threads are left unresolved for the reviewer to confirm.
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the existing PR feedback sweep protocol by introducing a new, explicit step for handling comments after they have been addressed. The primary goal is to streamline the process of acknowledging resolved feedback, particularly by automating the resolution of bot-generated comments while ensuring human reviewers retain control over their own threads. This update aims to improve clarity and efficiency in the feedback loop. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Code Review
This pull request improves the PR feedback sweep protocol by adding a clear step for replying to and resolving comments. The new instructions for identifying and handling bot comments are a good addition.
My review includes one comment on WORKFLOW.md that points out an inconsistency between this new documentation and the existing implementation for identifying bot users. Aligning these will improve the overall robustness of the system. The changes in this PR are otherwise clear and correct.
Copilot auto-creates fix PRs when mentioned, so exclude it. Other bots and human reviewers should be @mentioned normally.
There was a problem hiding this comment.
3 issues found across 1 file
Confidence score: 3/5
- There is concrete execution risk in
WORKFLOW.md: theresolveReviewThreadexample uses a commentidinstead of a review-thread ID, which can cause agents to call the wrong API target and fail thread resolution. - The documented bot-detection rule in
WORKFLOW.md(user.type == "Bot") conflicts with the existing logic inapps/work-please/src/tracker/github.ts(login.endsWith('[bot]')), creating likely behavior drift if followed as written. - Reply routing guidance in
WORKFLOW.mdis too broad (/pulls/<pr>/comments/<id>/replies), which only fits inline review comments and may break handling for top-level PR comments/review summaries. - Pay close attention to
WORKFLOW.md,apps/work-please/src/tracker/github.ts- align identifier usage, bot detection criteria, and reply endpoint scope to avoid agent misbehavior.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="WORKFLOW.md">
<violation number="1" location="WORKFLOW.md:264">
P2: The reply example is over-generalized: `/pulls/<pr>/comments/<id>/replies` only works for inline review comments, not the top-level PR comments and review summaries this sweep also requires handling.</violation>
<violation number="2" location="WORKFLOW.md:265">
P2: The bot-detection heuristic documented here (`user.type == "Bot"`) differs from the existing implementation in `apps/work-please/src/tracker/github.ts`, which uses `login.endsWith('[bot]')`. An agent following this workflow could identify a comment author as a bot (via `user.type`) that the orchestrator treats as human (because the login doesn't end with `[bot]`), or vice versa. Either align this guidance with the current `isBotLogin` heuristic or update `github.ts` to use `user.type` as well, so bot classification is consistent across the system.</violation>
<violation number="3" location="WORKFLOW.md:265">
P2: `resolveReviewThread` needs a review-thread ID, not the comment `id` from the payload, so this example points agents at the wrong identifier.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
- Distinguish inline review comment replies from top-level PR comment replies (different API endpoints) - Clarify that resolveReviewThread requires the GraphQL thread ID (from reviewThreads.nodes[].id), not the comment ID
|



Summary
user.type == "Bot"in the comment payloadTest plan
user.type == "Bot") is cleargh apicommand examples are accurateSummary by cubic
Add a reply-and-resolve step to the PR feedback sweep: after addressing a comment, reply with what changed, @mention the author (except Copilot), and resolve bot threads only (
user.type == "Bot"); leave human threads open. Clarifiesgh apiusage (different endpoints for inline review vs top-level PR comments) and that resolving requires the GraphQL thread ID fromreviewThreads.nodes[].id(not the comment ID); steps renumbered 4–6 → 5–7.Written for commit fb19efb. Summary will update on new commits.