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.
Code development allows with github currently allows two contribution workflows:
opening an issue
submitting a pull request
which is insufficient and - in most cases - out of band with current code.
Opening an issue allows giving feedback or reporting problems in a detailed manner,
but there's no way to mark the part of the code affected, if already identified.
Cursory ode reviews might be already done in passing by several people, but in a
lot of cases the effort of filing a bug report might just be to high for it to happen.
In other codebases, the sheer amount of issues reported results in nobody ever getting
to fix them in a meaningful manner.
Submitting a pull request ('sending patches') might be useful in some cases, i.e. if
the user has a concrete problem that they already have a fix for, and just submit it -
the same problem as above applies: it might never get merged, so people fork instead;
causing code fragmentation.
In a lot of cases it makes sense to have the original developer(s) fix the code instead
of letting a random affected user fix it; but the developer should have a relevant,
contextual hint.
Reviewboard (e.g.) has a really nice feature of allowing to comment an indivdual line,
and optionally opening an issue with the line - if github were to provide a similar feature
this could extend both the relevance of issues and improve on their context.
From a workflow perspective I'd allow any logged-in user to add a comment to any line on
any repository - which could be a simple "FIXME: off-by-one error?" or "TODO: improve error checking",
and might have an additional status by the owner of the repo ('confirmed', 'addressed', 'dismissed'),
with both the comment and the status being visible to any other user (including anonymous).
This way, even quick looks at codebases could provide the chance of improvements in the long run.
As you mentioned on the possible duplicates, I don't see how this can be implemented: how to maintain the comment location after a file is modified across commits? (true: feasible is the file has not been modified on new commits)
How does reviewboard deal with that? It's cool that you mentioned it though: I will have a look it later.
I think the sanest option would be to have a line comment button that opens an issue prefilled with a link to the commit and line, or even better: a new metadata that contains that link.
With the metadata, we could start doing funky things with it, like filtering issues that happen around a given file/line around a given commit (2D data), or even searching nearby unaltered lines that match or are close when the file changes.
It is already possible to comment on commits (for example, on cf851dd there is a comment form below) and even specific lines of them (for example, on cf851dd a button “+” appears when you hover over an individual line of the code).
It is also already possible to refer from issues to the specific lines of a source code (or of a text) in a commit. You just put an URL in an issue (or in a comment). Example:
I think it might be nice to be able to highlight the lines in the file you want to discuss, then press r and have it open a new issue with the file name and contents of that code block with line numbers in the issue. It would not be difficult to make a userscript that would do it!
Activity
berlincount commentedon Nov 12, 2014
Duplicates #211 #226 #284, will mail it to [email protected] though.
cirosantilli commentedon Nov 13, 2014
As you mentioned on the possible duplicates, I don't see how this can be implemented: how to maintain the comment location after a file is modified across commits? (true: feasible is the file has not been modified on new commits)
How does reviewboard deal with that? It's cool that you mentioned it though: I will have a look it later.
I think the sanest option would be to have a line comment button that opens an issue prefilled with a link to the commit and line, or even better: a new metadata that contains that link.
With the metadata, we could start doing funky things with it, like filtering issues that happen around a given file/line around a given commit (2D data), or even searching nearby unaltered lines that match or are close when the file changes.
berlincount commentedon Nov 13, 2014
I'd be happy enough already if the comment just sticks with the original commit.
Mithgol commentedon Dec 13, 2014
It is already possible to comment on commits (for example, on cf851dd there is a comment form below) and even specific lines of them (for example, on cf851dd a button “+” appears when you hover over an individual line of the code).
It is also already possible to refer from issues to the specific lines of a source code (or of a text) in a commit. You just put an URL in an issue (or in a comment). Example:
https://github.com/Mithgol/node-webbbs/blob/1b063d4fdd010e4c38d7a1e10297632330cfaa37/paratype/PT%20Free%20Font%20License_eng_1.3.txt#L14-15
berlincount commentedon Jan 11, 2015
The comment stays with the commit and doesn't travel with the code, though ...
Mithgol commentedon Jan 13, 2015
Yep.
However, you have said you'd be happy enough already if the comment just sticks with the original commit.
Mottie commentedon Dec 31, 2016
I think it might be nice to be able to highlight the lines in the file you want to discuss, then press r and have it open a new issue with the file name and contents of that code block with line numbers in the issue. It would not be difficult to make a userscript that would do it!