Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Allow commenting on non-pull-request code #284

Open

Description

@dmugtasimov

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.

Activity

  1. RSully commented on Oct 31, 2014

    @RSully

    All code has a commit associated with it, and commits allow commenting (on both the commit, and each line within the commit).

  2. Mithgol commented on Nov 1, 2014

    @Mithgol

    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.

  3. cirosantilli commented on Nov 4, 2014

    @cirosantilli
    Collaborator

    And if you want something other than commit comments, see also: #211

  4. pb-cdunn commented on Jan 21, 2016

    @pb-cdunn

    +1

  5. maiamcc commented on Jun 11, 2018

    @maiamcc

    +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.)

  6. holtzermann17 commented on Aug 8, 2018

    @holtzermann17
  7. originalfoo commented on Aug 10, 2018

    @originalfoo

    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.

  8. alranel commented on Aug 17, 2018

    @alranel

    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.

  9. davidt-secondmind commented on Nov 2, 2018

    @davidt-secondmind

    +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.

  10. DevinBirtciel commented on Dec 3, 2018

    @DevinBirtciel

    Is anything happening with this?

  11. bordumb commented on Dec 5, 2018

    @bordumb

    +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?

  12. davidstanke commented on Dec 12, 2018

    @davidstanke

    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.)

  13. farrukhnajmi commented on Dec 17, 2018

    @farrukhnajmi

    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

  14. vadzim-revolist commented on Jan 9, 2019

    @vadzim-revolist

    +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.

  15. 63 remaining items

  16. ToddBradley commented on Jan 5, 2021

    @ToddBradley

    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.

  17. chadm-sq commented on Jan 22, 2021

    @chadm-sq

    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.

  18. bhrutledge commented on Feb 9, 2021

    @bhrutledge

    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?

  19. bhrutledge commented on Feb 10, 2021

    @bhrutledge

    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.

  20. shadiramadan commented on Feb 25, 2021

    @shadiramadan

    How is this still an open issue 7 years later. @clarkbw

  21. shadiramadan commented on Feb 25, 2021

    @shadiramadan

    I'm actually starting to regret my orgs switch to github.

  22. SylvainTakerkart commented on Mar 16, 2021

    @SylvainTakerkart

    +1 on the general feature request described in this issue!

  23. chadm-sq commented on Mar 16, 2021

    @chadm-sq

    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.

  24. davidvincze commented on Jul 12, 2021

    @davidvincze

    +1

  25. ililic commented on Jul 20, 2021

    @ililic

    How has this been open since 2014 lol 💩

  26. Levi-Lesches commented on Jul 21, 2021

    @Levi-Lesches
    Contributor

    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.

  27. ting-lan-wang commented on Jul 30, 2021

    @ting-lan-wang

    +1

  28. chadm-sq commented on Jul 30, 2021

    @chadm-sq

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions