Fine Grained Code Review Support #359
Comments
|
this is on our roadmap! but we hadn't opened an issue for it yet, so thank you~ we wanted to do some designs up front and see what made the most sense; we only have some hand-drawn prototypes so far. personally i was interested in something kind of like |
|
We've experimented with various flavors of this. For awhile we used git appraise, which has a CLI along the lines described by OP. We found it basically unusable, to the point where it was having a chilling effect on code review. I prototyped a frontend which allowed you mark up a diff to leave comments, and that seemed fairly promising. The workflow ends up being similar to a the format-patch + email review workflow, except you do it all locally. The syntax I arrived on was using '>' as a prefix character for new comments, and something else (don't remember) for putting existing comments inside the patch, in context. The only real issue I had was that emacs tries to be helpful with edited patch files to the point of breaking them when you try to add comment metadata. A derived mode to disable this feature fixed it. Ultimately we chose to go back to github PR's rather than try to tool our way around it. The reason we were using it in the first place is because it gave us a way to digitally sign review comments; this would be a very attractive feature of any CLI-driven review workflow. (also: Hi Nate! Thanks for making something great!) |
|
Interactivity is nice but not needed for MVP. JetBrains etc can provide the interactivity using the cli hooks I'd suspect. Interactivity is a good v2 feature though I think |
What about the reverse? Quote the entire patch file, and have people insert their comments without the quote marks. That will be familiar for anyone used to reviewing patches by email, and the |
|
I've renamed this as we have since added However, we did not include an affordance for line comments. |
|
Hey @vilmibm, stumbled across this issue after realizing that I just wanted to point out a project I made a while back called https://github.com/jordanlewis/re I find it at least medium usable. It has a workflow that's half Please feel free to take ideas from that project if you find it appealing! |
Describe the feature or problem you’d like to solve
PRs have a really nice way of leaving approvals, change requests, comments, and marking comments as resolved. gh cli does not appear to support comments on PRs
Proposed solution
CLI could allow commenting on a commit, filename, and line number, and it could allow retrieving all comments on all changes in a commit.
Additional context
This likely will need support from GH API -- There's comments on PR issues in general (https://developer.github.com/v4/object/pullrequest/) and comments for reviews: https://developer.github.com/v4/object/pullrequestreviewcomment/
The text was updated successfully, but these errors were encountered: