TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

More code review tools

624 pointsby Oompaabout 9 years ago

23 comments

js2about 9 years ago
It would be nice if GitHub supported a Gerrit-inspired code-review process, where instead of having to choose between:<p>1) piling new commits onto the existing branch&#x2F;PR, or<p>2) force-pushing and completely losing the old commits on the server<p>You could instead push into a &quot;magic&quot; ref-spec and the server would retain the original commits, but also the rewritten commits, such that a PR can have multiple revisions. This is somewhat hard to explain unless you&#x27;re familiar with Gerrit and its &quot;patch set&quot; workflow.<p>Why? Because my preference is to rewrite history in order to address code review comments, such that what is finally merged leaves a clean history. But it is also valuable during the code review process to be able to look across the revisions to make sure everything has been properly addressed.<p>The only way to do both, today, is to create a new branch and PR for each &quot;revision&quot;. i.e. new-feature, new-feature-rev1, new-feature-rev2. Then close the original PR and reference it from the new PR. A bit tedious.
评论 #11292784 未加载
评论 #11292119 未加载
评论 #11292242 未加载
评论 #11292695 未加载
评论 #11292737 未加载
评论 #11292556 未加载
评论 #11292665 未加载
评论 #11292116 未加载
评论 #11299887 未加载
评论 #11293922 未加载
评论 #11293375 未加载
评论 #11292109 未加载
评论 #11292135 未加载
评论 #11295772 未加载
评论 #11293743 未加载
willchenabout 9 years ago
Does anybody else feel like GitHub has released more features in the last month than the last 6 months? I&#x27;m not sure if it&#x27;s just a coincidence with all the attention they&#x27;ve gotten on HN, but these improvements are much appreciated!
评论 #11292340 未加载
评论 #11291966 未加载
评论 #11292159 未加载
评论 #11293850 未加载
评论 #11291995 未加载
评论 #11295913 未加载
numbsafariabout 9 years ago
I&#x27;d love it if there was a way for me to queue my comments before submitting. I often keep my comments in a separate textedit&#x2F;nv window and then go back to put them in since I want to keep track of questions that arise as I&#x27;m reading, but I don&#x27;t want to pepper someone with comments that would be resolved 200 lines later in the diff.
评论 #11291960 未加载
评论 #11292297 未加载
评论 #11293166 未加载
评论 #11292196 未加载
评论 #11299720 未加载
评论 #11293948 未加载
评论 #11293222 未加载
danpalmerabout 9 years ago
This is a great step in the right direction. I use GitHub for code review every day, and it has historically been very poorly designed for thorough reviews. These changes look great, I just hope that we get some sort of checking-off of review points, and accept&#x2F;reject functionality.
评论 #11291930 未加载
评论 #11291865 未加载
评论 #11291936 未加载
willchenabout 9 years ago
I&#x27;ve noticed some open source projects (particularly Angular 2) follow this convention where they never actually &quot;merge&quot; the PR, but rather rebase it into their main branch and have a message in the commit to close the PR.<p>The advantages seem to be that you get a cleaner git history, and you can keep all the &quot;in-between&quot; &#x2F; WIP commits that tell the story. Is this done through an automated tooling or is someone manually rebasing it into master? It seems to be a really useful practice so I&#x27;m curious how people do it. It would be great if GitHub could offer this natively, as I think many power Git users appreciate the benefits of rebasing over merging.
gueloabout 9 years ago
Sometimes when I submit a PR and I get a lot of feedback I get lost making sure I&#x27;ve addressed every comment. My #1 feature request would be being able to mark comment threads as resolved. The outdated comment feature sometimes works for this use case but mostly it doesn&#x27;t.
评论 #11293056 未加载
alexwebb2about 9 years ago
Did they kill commit-level comments?<p>I can no longer make comments on a given commit - the entry box at the bottom is gone. Looks like you have to scroll all the way back up to the top, switch to the &quot;Conversation&quot; tab, and then make a PR-level comment instead of a commit-level comment.<p>I hope I&#x27;m missing something here, because as it stands now it&#x27;s a big step backwards.
评论 #11292131 未加载
jakub_gabout 9 years ago
I&#x27;ll plug my work as always when talking about the topic:<p>I wrote a small script for Chrome&#x2F;Firefox that I found useful for reviewing big PRs on GitHub. It gives you possibility to expand&#x2F;collapse files, mark files ok&#x2F;fail in order come back to them later.<p>It works with mouse and keyboard (though I&#x27;ve noticed there are some issues with tab order after GitHub upgraded their code, and small UI glitches, I&#x27;ll try to have a look at them soon)<p>It&#x27;s a hack on top of GitHub so it needs maintenance every couple of months, but overally it does its job well IMO.<p>I don&#x27;t have much time to hack on it anymore, but community contribs are very welcome. I wrote some potential ideas for improvements as GH issues in the repo. AMA if you&#x27;re interested.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;jakub-g&#x2F;gh-code-review-assistant" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jakub-g&#x2F;gh-code-review-assistant</a>
eridiusabout 9 years ago
These are some nice changes, though there&#x27;s still plenty of things I want GitHub to make better about code reviewing.<p>One of these changes, and one that annoys me every single day, is when I get an email about a comment, the email doesn&#x27;t include any context (e.g. it should include the previous comments on that line and probably the hunk as well). And when I click &quot;View on GitHub&quot; to see it in context, if the commit is now on an outdated diff, I get taken to a page that <i>doesn&#x27;t show the comment at all</i>. It takes me to the Files view, but the Files view doesn&#x27;t show outdated comments. If the comment is on an outdated diff then it really should take me to the Conversation view with the comment in question expanded.
pizzaabout 9 years ago
If next to every file, Github also listed its filesize, I would know exactly what file to begin looking at when I encountered a new repo (to a good approximation -- in any case, I would be able to intuit better decisions with a combination of filenames, the information in hypothetical README.md&#x27;s, and filesizes than just READMEs and filenames alone..)<p>Maybe this doesn&#x27;t scale or something? It&#x27;s something I&#x27;ve felt necessary for a while though. Maybe their user testing has concluded otherwise?
netcraftabout 9 years ago
I wish it were possible to put comments directly on a line of code in any commit &#x2F; repo outside of a PR. Sometimes someone wants me to review their code that they aren&#x27;t submitting anywhere.
评论 #11293236 未加载
kdazzleabout 9 years ago
My biggest pet-peeve with GH code review is that line-comments are automatically folded whenever that line of code is changed. So if the changes to that line didn&#x27;t relate to your CR or if they didn&#x27;t actually fix anything, then your comment will pretty much be lost to time.<p>Plus, it would be nice to see the discussion around a particular line without having to go through the entire PR and unfolding each conversation to see if it&#x27;s the right one.
评论 #11299797 未加载
forgotpwtomainabout 9 years ago
I can&#x27;t say I&#x27;m a fan. If I select a single commit, instead of giving me a list with a single commit check-marked, it gives me only that single commit and an option to &#x27;show all commits&#x27;. So to change the commit you are viewing requires clicking &#x27;show all commits&#x27; (waiting for them to load) and then selecting the other commit you want to view (which should just be a check box).<p>Also it totally baffles me that these actions all require server-side requests. It&#x27;s really a lot easier to go to the old commits tab, and to ctrl click an open tab for each commit then to use this new feature.<p>At one point Github offered the best and cleanest UI of all the alternatives - but I doubt this will be the case for long at this rate.
hwangmoretimeabout 9 years ago
Code review is something all of us do, but all of us do differently. Anyone know of any nice frameworks, articles, or blog posts for code review? I&#x27;m particularly interested in the case where knowledge transfer is a high priority in the code review.<p>My current side project integrates feedback theory [1], to provide scaffolds and other cues to help and remind reviewers to give high quality feedback. Thus, my interest.<p>1: <a href="https:&#x2F;&#x2F;scholar.google.com&#x2F;scholar?q=%22The+Effects+of+Feedback+Interventions+on+Performance%22&amp;btnG=&amp;hl=en&amp;as_sdt=0%2C39&amp;as_vis=1" rel="nofollow">https:&#x2F;&#x2F;scholar.google.com&#x2F;scholar?q=%22The+Effects+of+Feedb...</a>
评论 #11292019 未加载
评论 #11294543 未加载
评论 #11292177 未加载
Negative1about 9 years ago
Nice additions. Can&#x27;t help but feel at some point you&#x27;ll be able to edit and compile code directly on Github (with some sort of compiler&#x2F;CL backend). Has Github ever discussed integrating Atom directly into the site?
评论 #11294001 未加载
xkarga00about 9 years ago
Dear Github, can you please bring the search bar back (w&#x2F;o the need to log in)?
评论 #11296882 未加载
stormbrewabout 9 years ago
Only related to review in a somewhat indirect way, but I really wish the commit view on github (as well as other git tools) had an equivalent of --left-only command line option to git-log. It&#x27;s incredibly useful for viewing a high level of the history of a repo that uses merge bubbles, and lack of tooling around doing just that seems like that main reason people do things like squash their branches before merging to master (which is where I think it connects back to review).
artursapekabout 9 years ago
Awesome to see GitHub stepping to the plate with these updates. IMO the biggest thing missing in the PR&#x27;s diff view is a git blame column beside the changes, so if someone is writing good commits I can glance through the entire diff and see which changes were introduced together and why.<p>Just a feature request, and I know how annoying those can be on the receiving end. Great updates either way.
knownabout 9 years ago
Are there any <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Software_design_pattern" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Software_design_pattern</a> review tools?
pearlsteinjabout 9 years ago
I&#x27;ve been pleasantly surprised at how fast Github has been moving since that critical open letter came out. For a giant company like Github they&#x27;ve been releasing developer tools very quickly.
评论 #11291933 未加载
debacleabout 9 years ago
I&#x27;d like block-level comments and maybe even an in-commit commit function (the ability to commit to a PR branch while in the PR). That&#x27;s all I really care about.
Jemaclusabout 9 years ago
I think the biggest thing I want is pagination for extremely large commits. Any ideas if that&#x27;s gonna happen?
评论 #11292715 未加载
fiatjafabout 9 years ago
No matter how much they do, people will still complain.