Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review individual commits #22

Open
krobelus opened this issue Jan 11, 2023 · 6 comments
Open

Review individual commits #22

krobelus opened this issue Jan 11, 2023 · 6 comments

Comments

@krobelus
Copy link
Contributor

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
Copy link
Owner

danobi commented Jan 13, 2023

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
Copy link
Owner

danobi commented Jan 6, 2024

I am also thinking about this in the context of #47 (comment) . I believe we can build on top of PR metadata for this

@krobelus
Copy link
Contributor Author

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
Copy link

rmacklin commented Aug 8, 2024

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: pwntester/octo.nvim#294 after seeing it had been solved by https://github.com/ldelossa/gh.nvim

@danobi
Copy link
Owner

danobi commented Aug 9, 2024

Thanks for the pointers!

@rmacklin
Copy link

rmacklin commented Aug 9, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants