Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/cliPublic

Retrieving pull request reviews...#3993

Answeredbymislav
mestebangutierrez asked this question inQ&A
Discussion options

I've been playing recently with the pull requests and the CLI (v1.12.1) and haven't figured out how to show all the reviews for a given PR and the comments that may have been added for each of them.

Obviously you can retrieve the raw data leveraging the API, and enhance developer experience by adding an alias... but in the end, the solution would be a JSON excerpt (regardless you use ajq expression or aGo template).

Has anybody figured out how to do this?

You must be logged in to vote

Right now there are no built-in features to fetch all reviews together with review comments from gh. You can do thisgh pr view --json reviews to get JSON data about all reviews on a PR, but that only fetches the main review body plus its state and author, but not the line comments itself.

You can usegh api to manually make the API request to fetch all review comments, but to do that you will have to study GitHub's API documentation a bit and then, after fetching all information about line comments, you will have to decide how to present them. (That last part is not trivial and it's the large reason why we haven't built this ourselves.)

Replies: 2 comments

Comment options

Right now there are no built-in features to fetch all reviews together with review comments from gh. You can do thisgh pr view --json reviews to get JSON data about all reviews on a PR, but that only fetches the main review body plus its state and author, but not the line comments itself.

You can usegh api to manually make the API request to fetch all review comments, but to do that you will have to study GitHub's API documentation a bit and then, after fetching all information about line comments, you will have to decide how to present them. (That last part is not trivial and it's the large reason why we haven't built this ourselves.)

You must be logged in to vote
0 replies
Answer selected bymislav
Comment options

Sorry to resurrect a dead thread, but it might be interesting to re-evaluate this in the context of copilot chat/claude/etc. If we had the opportunity for these tools to leveragegh to read pull request comments, we could create commands that are along the lines of "evaluate each comment and implement suggested changes" or some such

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@mestebangutierrez@mislav@abhishekmukherg

[8]ページ先頭

©2009-2025 Movatter.jp