You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
When reading someone's code I need to ask an author why he/she code that way, not another or ask for clarfication of piece of code for better understanding or suggest an alternative solution for consideration without making pull request. There fore it would useful communication in the context of the code line, so please, allow commenting on any code in repository.
Reacted by Taylor Edmiston, sandstrom, Nobo Nadie, Neal McBurnett, Will Thompson, Chris Parmer, nzbart, Adam Spiers, Sergey Nevmerzhitsky, Nafaa Boutefer and 801 more
Reacted by xiaodeaux, Aurielle, Dev Ojha, Pedro Rodrigues, Damien Cupif, Luis Carbonell, Habib Rehman, Ivan Skriabin, Daniel Moka, Josh Geller and 64 more
Reacted by xiaodeaux, Aurielle, Dev Ojha, Evert Island, Marc Tatham, Pedro Rodrigues, Luis Carbonell, rafonzoo, Ivan Skriabin, Yair Halberstadt and 82 more
Reacted by kassalanche, MeltemTutar, Arun Avanathan, Shad Storhaug, Chris Fischer, Yves M., joaobarcia, Quinlan Jung 🦥, Simon Renger, Christopher Derrell and 29 more
Reacted by Yves M., joaobarcia, Quinlan Jung 🦥, Simon Renger, Christopher Derrell, Danilo Imparato, Gurmeet Athwal, hqics, Niklas Raab, Thomas Eckert and 19 more
While viewing a file, use the “Blame” button to get the commit that introduced the last version of the particular line of the source code.
Reacted by Gianr Lazz, PK Gupta, Gandalf Saxe, bugproof, Martin Breuss, ahmednawar, Artur Zubilewicz, MeltemTutar, Aaron Kaw, andrew-motesque and 3 more
Reacted by Neal McBurnett, Edward Andress and MeltemTutar
+1 -- would love a way to comment in a PR on code not changed in the commits associated with that PR. (e.g. sometimes new code has rendered old docstrings obsolete and I want to mention this in a comment.)
Reacted by Mike Totman, Alex, Colin Higgins, Jim Collinson, Lingaraj Kothokatta, Nick Johnson, efe, Patrick Bricout, Philip Garrett, iyknk and 294 more
Reacted by mwatts and paulomunoz
Reacted by Michael Clapham, Hugh Nelson, Osana Osaretin, Salman Zindani, Liz Kaufman, Heiko, KMedvid, Ben FrantzDale and paulomunoz
It's a PITA to have to track down a commit relevant to the code (especially if it's from many months ago). Would be nice to be able to comment on a line and have github work out which commit it relates to automagically.
Reacted by Εɭioʈ H, Rémi Marenco, Farrukh Najmi, Manyaka, Serge Krul, Anton Obukhov, matt wilkie, Joel Berkeley, John Allen, kaushal98 and 16 more
+1 -- Someone creates a PR to show me how they have changed the code to achieve a particular purpose. I think there is some code, unchanged in their PR, that should be changed to achieve the purpose of this PR. I would like to be able to comment on this, and for the PR author, the most useful place for me to leave the comment is next to the (as-yet-unchanged) code. In my mental model, the comment relates to this PR, not to an old commit that made the code how it is.
Reacted by David Núñez, kate, elvijs, nbone, Billy W Conn, Robert Schuldt, Dan Kreft, Sunny Patel, Clare Walsh, Jake Wisse and 169 more
Reacted by Ben FrantzDale, Sara Helba, engin tola, Èyítọ́pẹ́ / Type and Lee Fogel
Currently, the only way to add line-by-line comments is to go through a formal pull request workflow. Sometimes you want to allow people to more freely push code (ad-hoc/unimportant work). It doesn't make sense to always force people into making pull requests just so to get comments on code.
I think of this in the context of an audit. Say I have a repo that I've been working on for a while: lots of commits, lots of PRs (or maybe even no PRs, if I'm the sole author). I want to ask a colleague to take a look and give general feedback. Some of their notes may be about project-level design choices, others may be file-level thoughts, and still others may be line-by-line nits. It doesn't matter how the code got to the state it's in; I'm asking for review of current state... the entire current state.
I'm not really sure how to do this. (Other than to create a branch, delete all contents of that branch, then make a PR from the actual repo contents against that blank branch. Which seems rather awkward.)
Reacted by lcruz, Michael Jess, Jake Burton Denmark, Serge Krul, Justin Lanyon-Owen, Henry Jacobs, Anton Obukhov, matt wilkie, Garrett Reynolds, Joel Berkeley and 26 more
Reacted by Serge Krul, Anton Obukhov, Daniel F Moisset and Rosina Norton
Reacted by Serge Krul, Anton Obukhov and Liz Kaufman
The way GitLab does this is very functional and seammless because it does not require hunting down the commit where code you want to comment was changed. Please consider support similar:
+1
I need to make comments to the code that I think was intended to be changed, but actually wasn't changed.
So I need to comment any line of the file, not only near the changes.
Reacted by Daniel Powell, Andrii Paniuta, Alexander Hentschel, John Lemp, Jonathan Woodard, Javier Bianciotto, lcruz, Raziel, Andrey Efimov, Jurko Gospodnetić and 55 more
It's now been 6 years and 3 months. Welcome to 2021, dear readers. As far as I can tell, there has been no progress in GitHub in this area.
Reacted by Mina, David L. Rajcher, Ala Eddine, KMedvid and Fatima Mahmoud
Reacted by Tyler Pennebaker, Michael Jeffrey, Brian Steele, Rahel Lüthy, Marcos Aurélio Macedo da Rocha Júnior, Daheen Lee, kevindehecker, Svein Atle Arnesen, Sanya Srivastava, bonafidehan and 20 more
Reacted by Dave Abrahams, Tyler Pennebaker, Alex Beshchuk, Dan Aronson, Sanya Srivastava and Ala Eddine
Not that you need more justification, but: In Go and some other languages, it is an error to import a module and not use it. A PR that removes the final use of a module, will cause problems up outside of the lines changed in the PR. A good commented PR has to be able to refer to those.
How is this still an open issue 7 years later. @clarkbw
Reacted by Szymon Borkowski, Tony Xu, Ed Wilson, Matheus T. Laurentys, coldemort, Zhi Yang, Alexandre Ladeira, Antonio Sandoval, Ben FrantzDale, jisom-godaddy and 2 more
Unless you're fixing it or adding important non-personal details, please only just vote with the 👍🏻 and such at the top. Commentary noise is a good reason for the owner to close this bug report without addressing it. Small, discrete bug reports, without drama or entitled whining are best.
Reacted by Sylvain Takerkart, Karim, Arundas TC, Ala Eddine, Hugh Gallagher, ashish agrawal and Zadkiel AHARONIAN
Reacted by Ian Knowles, coldemort, Martin Morset, nmdefries, Nadav, Aakarsh S, jisom-godaddy, Sven Jacobs, Haris Houlis and paullegranddc
This is a private bug. No one from Github watching this or is using this to schedule work.
There are "+1" and smiley buttons, if you want to show support to things on Github, but adding comments like the previous sends email to a hundred people who don't care that much that you agree. If you want to indicate your support in a polite way, find the ":)" at the top.
Everyone else, if these notifications bother you too, please change your "participating" status to "ignored" at the top. #284 I changed mine to avoid getting messages appended to this, and you can too.
Reacted by Levi Lesches, Zadkiel AHARONIAN and Mark
Activity
RSully commentedon Oct 31, 2014
All code has a commit associated with it, and commits allow commenting (on both the commit, and each line within the commit).
Mithgol commentedon Nov 1, 2014
While viewing a file, use the “Blame” button to get the commit that introduced the last version of the particular line of the source code.
cirosantilli commentedon Nov 4, 2014
And if you want something other than commit comments, see also: #211
pb-cdunn commentedon Jan 21, 2016
+1
lorem.json via http://beta.json-generator.com/N1ppviBrX
maiamcc commentedon Jun 11, 2018
+1 -- would love a way to comment in a PR on code not changed in the commits associated with that PR. (e.g. sometimes new code has rendered old docstrings obsolete and I want to mention this in a comment.)
holtzermann17 commentedon Aug 8, 2018
Here's an example using Hypothesis to "inject" comments. I realise this isn't what people were asking for but it might work in a pinch.
https://via.hypothes.is/https://gist.github.com/caugner/589cac8dbb07b26b34ff
originalfoo commentedon Aug 10, 2018
It's a PITA to have to track down a commit relevant to the code (especially if it's from many months ago). Would be nice to be able to comment on a line and have github work out which commit it relates to automagically.
alranel commentedon Aug 17, 2018
I think what we really want is the ability to start a review attached to an entire file at a given commit, and have it listed/linked among issues.
davidt-secondmind commentedon Nov 2, 2018
+1 -- Someone creates a PR to show me how they have changed the code to achieve a particular purpose. I think there is some code, unchanged in their PR, that should be changed to achieve the purpose of this PR. I would like to be able to comment on this, and for the PR author, the most useful place for me to leave the comment is next to the (as-yet-unchanged) code. In my mental model, the comment relates to this PR, not to an old commit that made the code how it is.
DevinBirtciel commentedon Dec 3, 2018
Is anything happening with this?
bordumb commentedon Dec 5, 2018
+1 This would be really nice to have.
Currently, the only way to add line-by-line comments is to go through a formal pull request workflow. Sometimes you want to allow people to more freely push code (ad-hoc/unimportant work). It doesn't make sense to always force people into making pull requests just so to get comments on code.
Any update on this?
davidstanke commentedon Dec 12, 2018
I think of this in the context of an audit. Say I have a repo that I've been working on for a while: lots of commits, lots of PRs (or maybe even no PRs, if I'm the sole author). I want to ask a colleague to take a look and give general feedback. Some of their notes may be about project-level design choices, others may be file-level thoughts, and still others may be line-by-line nits. It doesn't matter how the code got to the state it's in; I'm asking for review of current state... the entire current state.
I'm not really sure how to do this. (Other than to create a branch, delete all contents of that branch, then make a PR from the actual repo contents against that blank branch. Which seems rather awkward.)
farrukhnajmi commentedon Dec 17, 2018
The way GitLab does this is very functional and seammless because it does not require hunting down the commit where code you want to comment was changed. Please consider support similar:
https://docs.gitlab.com/ee/user/project/merge_requests/work_in_progress_merge_requests.html
vadzim-revolist commentedon Jan 9, 2019
+1
I need to make comments to the code that I think was intended to be changed, but actually wasn't changed.
So I need to comment any line of the file, not only near the changes.
63 remaining items
ToddBradley commentedon Jan 5, 2021
It's now been 6 years and 3 months. Welcome to 2021, dear readers. As far as I can tell, there has been no progress in GitHub in this area.
chadm-sq commentedon Jan 22, 2021
Not that you need more justification, but: In Go and some other languages, it is an error to import a module and not use it. A PR that removes the final use of a module, will cause problems up outside of the lines changed in the PR. A good commented PR has to be able to refer to those.
expand alert to include p and ul in message div, add rules for vertic…
bhrutledge commentedon Feb 9, 2021
I found this related post on the GitHub support forum: https://github.community/t/feature-request-review-comment-on-whole-file/135108. If folks know of other ones, could you add them here for reference?
bhrutledge commentedon Feb 10, 2021
There's a Visual Studio Code extension that would facilitate this process: https://marketplace.visualstudio.com/items?itemName=vsls-contrib.codetour. There has been some discussion about adding it to the GitHub UI: microsoft/codetour#10. The latest thinking is that GitHub CodeSpaces will be "the natural mechanism for enabling developers to replay a tour from GitHub." Someone has also created browser extensions for Chrome and Firefox to play tours in GitHub: https://github.com/doctolib/code-tours-github.
shadiramadan commentedon Feb 25, 2021
How is this still an open issue 7 years later. @clarkbw
shadiramadan commentedon Feb 25, 2021
I'm actually starting to regret my orgs switch to github.
SylvainTakerkart commentedon Mar 16, 2021
+1 on the general feature request described in this issue!
chadm-sq commentedon Mar 16, 2021
Unless you're fixing it or adding important non-personal details, please only just vote with the 👍🏻 and such at the top. Commentary noise is a good reason for the owner to close this bug report without addressing it. Small, discrete bug reports, without drama or entitled whining are best.
tribbloid commentedon Jun 14, 2021
+1 and particularly important when combining with https://github.com/marketplace/actions/publish-unit-test-results
davidvincze commentedon Jul 12, 2021
+1
ililic commentedon Jul 20, 2021
How has this been open since 2014 lol 💩
Levi-Lesches commentedon Jul 21, 2021
This isn't the official GitHub repo, https://github.com/github/feedback is. Open a discussion in the general feedback category (and link back to here) to get a response from GitHub staff.
ting-lan-wang commentedon Jul 30, 2021
+1
chadm-sq commentedon Jul 30, 2021
This is a private bug. No one from Github watching this or is using this to schedule work.
There are "+1" and smiley buttons, if you want to show support to things on Github, but adding comments like the previous sends email to a hundred people who don't care that much that you agree. If you want to indicate your support in a polite way, find the ":)" at the top.
Everyone else, if these notifications bother you too, please change your "participating" status to "ignored" at the top. #284 I changed mine to avoid getting messages appended to this, and you can too.