danobi / prr

Mailing list style code reviews for github
GNU General Public License v2.0
289 stars 18 forks source link

Review individual commits #22

Open krobelus opened 1 year ago

krobelus commented 1 year ago

Instead of reviewing the sum of all changes, I'd like to review commits one-by-one.

Unfortunately, the github API doesn't make this easy. I have a hacky script that tries to compute the line numbers that github expects but it fails when there are merge commits

danobi commented 1 year ago

Yeah, per commit reviewing would be nice. Although I believe even GH itself has restrictions on what kind of comments you can leave on per-commit reviews. IIRC you can't do spans (someone should double check me)

danobi commented 9 months ago

I am also thinking about this in the context of https://github.com/danobi/prr/pull/47#issuecomment-1878953383 . I believe we can build on top of PR metadata for this

krobelus commented 8 months ago

the hardest part is reverse engineering the github API. An obvious workaround is to post the literal (per commit) prr-files as comments on github, I wonder how well that is received

rmacklin commented 1 month ago

the hardest part is reverse engineering the github API

It might be easier to look at prior art. As a reference, the octo.nvim plugin gained support for individual commit reviewing in this PR: https://github.com/pwntester/octo.nvim/pull/294 after seeing it had been solved by https://github.com/ldelossa/gh.nvim

danobi commented 1 month ago

Thanks for the pointers!

rmacklin commented 1 month ago

You're welcome! Thank you for working on this project :) - I'm not yet using prr myself (mainly because I kinda rely on the ability to review individual commits) but it looks quite interesting/promising!