Pending review body set via API is silently overwritten when submitting from the UI #188646
Replies: 3 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.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
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.
-
Select Topic Area
Bug
When a pending review is created via the REST API with a body set, the "Finish your review" dialog doesn't
load that body into the textarea. Submitting from the UI overwrites it with an empty string in nothing entered by the user.
The API docs say omitting event keeps the review pending so you can "finalize it later" in the UI which
implies the body should be shown as a draft, not discarded.
Steps to Reproduce
curl -X POST
-H "Authorization: Bearer "
-H "Accept: application/vnd.github+json"
https://api.github.com/repos///pulls//reviews
-d '{"body": "My review summary."}'
What user sees
PUT /page_data/submit_review
{"body":"","event":"comment","headSha":""}
body always comes from the textarea — no fallback to the saved draft. Before and after:
{ "state": "PENDING", "body": "My review summary." }
{ "state": "COMMENTED", "body": "" }
Suggested fix: Pre-populate the textarea with the saved body when the dialog opens.
Searched through existing discussions but couldn't find this reported before. In case if there's an existing discussion on the same, feel free to mark this as a duplicate ✌️
Beta Was this translation helpful? Give feedback.
All reactions