-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not add duplicate comments #19
Comments
This seems a broken behavior - there should be already check for this situation. I'll test that tomorrow. |
Cool.. |
Hi, haven't time yesterday, sorry. I've checked that today, and this is not working (actually not implemented correctly). I'm preparing a patch right now. |
Ok, I see why this is not added yet - I don't see how to map stash line comments to their respective lines. Calling
Which does not point to the line where the comment is attached. Will ask on attlassian mail list. And question url for tracking: https://answers.atlassian.com/questions/311655/how-to-match-pull-request-comment-to-specific-line# |
The "not so ideal" workaround to this issue would be to add some kind of "crc" from line number and comment and add it to comment itself. crc = (comment + line).hashCode(); And then check for commentWithCrc in comments.. Ugly but should work.. |
Great idea. Will implement that if there is no way with API. |
There is no answer from Atlassian. I've implemented Your solution, but haven't tested it on live system. This will be done tomorrow. If you have time - please test :) |
When doing review again (eg. on reopening PR) do not add duplicate reviews (same comment on same line)
Its surly possible on Stash.
Im not sure if its possible (or needed) on Gerrit.
The text was updated successfully, but these errors were encountered: