Feature Request: API/CLI support for re-requesting PR reviews (including Copilot) #186152
Replies: 7 comments 4 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
This seems to work for me now: It only works with own PAT. I can't seem todo it using our org's custom app or Edit: Wanted to mention this works to re-requesting reviews too |
Beta Was this translation helpful? Give feedback.
-
|
It works for me with "copilot-pull-request-reviewer[bot]" |
Beta Was this translation helpful? Give feedback.
-
✅ Workaround: GraphQL
|
| Bot | Node ID |
|---|---|
| copilot-pull-request-reviewer | BOT_kgDOCnlnWA |
| github-code-quality | BOT_kgDODVhblQ |
| gemini-code-assist | BOT_kgDOCow4Ng |
| coderabbitai | BOT_kgDOCCSy2w |
You can discover a bot's node ID by querying the reviews field on a PR where the bot has already reviewed — the author fragment ... on Bot { id } will return it.
Why this works
The GraphQL RequestReviewsInput type has a botIds field that the REST API and CLI don't surface. This successfully re-requests reviews even after the bot has already submitted one.
Tested and confirmed working as of April 2026. Hope this helps unblock automated workflows! 🚀
Beta Was this translation helpful? Give feedback.
-
|
This thread is close to the exact workflow risk I am trying to validate: automated agent PR loops where a bot review is re-requested after new commits. Disclosure: I maintain Relay for Codex: https://github.com/Ryan-Guo123/relay-codex. I am not asking for stars or trying to replace Copilot/CodeRabbit reviews. The question is smaller: before re-requesting a bot review, do maintainers want a pre-review artifact that says what changed, what was verified, what is still missing, and whether the PR should be reviewed, split, or sent back? If the GraphQL/bot-review loop already covers that job, that is useful negative signal. The validation artifact is here: https://github.com/Ryan-Guo123/relay-codex/blob/main/docs/round1-reviewer-request.md. Copy-paste external trial workflow: https://github.com/Ryan-Guo123/relay-codex/blob/main/docs/external-repo-trial.md. Useful outcomes are reused / edited_heavily / ignored / confusing, plus before_review / in_addition / not_needed versus existing AI review tools. |
Beta Was this translation helpful? Give feedback.
-
|
Relevant issues: cli/cli#12489 cli/cli#2053 |
Beta Was this translation helpful? Give feedback.
-
|
We've been running an AI-assisted development workflow on a Python project where GitHub Copilot Business automatically reviews every PR. Our setup uses the native repository ruleset ("Automatically request Copilot code review") with "Review new pushes" enabled — not a custom GitHub Actions workflow. The ruleset correctly triggers the initial review on PR open, but re-reviews on subsequent code pushes are unreliable despite the flag being set. Push 1: code push (PR open) → Copilot reviews ✅ Without the docs-only push in between, Push 3 does not trigger a re-review. With it, it does. We've observed this twice, same sequence, same result. It feels deterministic rather than lucky — straight code→code never fires, docs→code always has. Copilot maintains an internal baseline of "last reviewed commit." When a new push arrives, it compares the diff from that baseline. If it determines nothing meaningful has changed since its last review, it deduplicates and skips. A docs-only push shifts the baseline commit without triggering a review. When the subsequent code push lands, Copilot sees a fresh diff from the new baseline — unreviewed code — and fires. Whether the pattern holds beyond Push 3 — we haven't tested further iterations Where we are now: We'd love to continue investigating but have hit an unfortunate wall: our Copilot credits are exhausted, pausing the investigation at two data points. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
Yes. When using automated workflows (GitHub Actions, AI coding agents like Codex, Copilot Coding Agent) that iterate on pull requests, there's currently no API or CLI way to re-request a review from a reviewer who has already submitted a review.
Current behavior:
gh pr edit <PR#> --add-reviewer copilotor the REST APIPOST /pulls/{pull_number}/requested_reviewersworks for the initial review requestImpact:
This breaks AI-agent-assisted development workflows where:
Describe the solution you'd like
Add API/CLI support for re-requesting reviews, matching the existing web UI functionality:
REST API option:
Or extend the existing endpoint with a
forceparameter:GraphQL:
Add a
reRequestReviewsmutation alongside the existingrequestReviewsmutation.gh CLI:
Describe alternatives you've considered
Additional context
Related discussions:
Why this matters now:
As AI-assisted development tools become mainstream (GitHub Copilot Coding Agent, OpenAI Codex, Claude, Cursor, etc.), the typical workflow is:
With API support for re-requesting reviews, this becomes fully automatable - a critical capability for the future of AI-assisted software development.
Beta Was this translation helpful? Give feedback.
All reactions