On the Github web UI, I can click on a line and say something like:
Good architecture, but please pass the
std::vector<std::uint8_t> hugedata
asconst &
, to avoid a copy.
and bundle such comments as one review with a final verdict.
So far, I've only found gh pr review
, which only allows me to generally approve/comment/reject a PR that I'm reviewing.
gh
CLI?gh
doesn't seem to have built in support for this, but you can still use gh api
to call the API:
gh api -H "Accept: application/vnd.github.v3.diff" /repos/OWNER/REPO/pulls/ID
+++
@@
(by number of lines after that line)path
, the line offset from the start of the hunk as position
, and your commend as body
)echo '{ "comments": [{"path": ...,"position": ...,"body": ...}, ...] }' |
gh api -X POST /repos/OWNER/REPO/pulls/ID/reviews
body
and event
properties to your review's body)