Copilot's PR "Suggested changeset" not accessible via any API #197459
Replies: 4 comments
-
|
💬 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.
-
|
I previously incorrectly raised this issue at: cli/cli#13517 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
API
Body
This issue is about Copilot's "Suggested changeset" feature — the multi-file grouped suggestion that Copilot generates during its code review.
This data appears in the GitHub WebUI (labeled "Suggested changeset 1", "Suggested changeset 2") but is not exposed via any API.
Proof: No API Returns the Changeset
Fetched every available data source for PR #29208 review #4356610345 (a Copilot review with suggested changesets):
GET /pulls/{pr}/commentsGET /pulls/{pr}/reviews/{id}reviewThreads__type(name: "SuggestedChangeset")gh api repos/.../commits/{sha}→files[].patchgh pr view --json comments,reviews,filesgh pr diffGET /pulls/{pr}/filesSpecific example: Copilot review comment r3298114511 shows a "Suggested changeset" in the WebUI proposing:
This code does not exist in any commit, any API response, or any comment body. Searching 117KB of API data across 9 endpoints for
Record<string, unknown>ortoBeUndefinedreturns zero matches. The actual committed code is the weakerexpect("invalid_field" in config).toBe(false)— the changeset's stronger suggestion was never persisted anywhere accessible outside the browser.Proof: Changeset Is JS-Injected, Not in Static HTML
I fetched the full page HTML of the review page (34KB). It contains comment bodies and review metadata, but zero matches for "Suggested changeset" or "changeset":
The "Suggested changeset" label and its grouped diffs are rendered entirely by client-side JavaScript after page load. They are not present in the initial HTML payload, confirming they are not server-rendered content — they are dynamically injected by Copilot's frontend code.
Reproduction
ghCLI)diff_hunkfields are returnedcurlorwget— "Suggested changeset" text is absent from static HTML tooRequest
Expose Copilot's "Suggested changeset" data via the API — either as a new field on
PullRequestReviewCommentor as a new endpoint on the review itself. The minimal viable output would be the suggested file diffs that Copilot generates as part of its changeset, allowing CLI tools to display and act on them without resorting to browser-only access.Beta Was this translation helpful? Give feedback.
All reactions