Skip to content
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

Add comment replies #5104

Merged
merged 5 commits into from
Oct 22, 2018

Conversation

jonasfranz
Copy link
Member

@jonasfranz jonasfranz commented Oct 18, 2018

Partially fixes #4389 and #5100.

This PR makes it possible to reply to review comments. These replies will be also shown at the "Conversation" tab.

At the moment it is only possible to reply to comments if there is already a review at the specific line. That can be fixed, but requires translations. We should discuss about including this in 1.6.

Without this enhancement the review comment feature seems buggy to the end user.

@codecov-io
Copy link

codecov-io commented Oct 18, 2018

Codecov Report

Merging #5104 into master will increase coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5104      +/-   ##
==========================================
+ Coverage   37.43%   37.44%   +<.01%     
==========================================
  Files         308      308              
  Lines       45715    45718       +3     
==========================================
+ Hits        17114    17119       +5     
  Misses      26141    26141              
+ Partials     2460     2458       -2
Impacted Files Coverage Δ
modules/auth/repo_form.go 39% <ø> (ø) ⬆️
routers/repo/pull_review.go 0% <0%> (ø) ⬆️
models/repo_list.go 63.37% <0%> (+1.16%) ⬆️
models/repo_indexer.go 52.11% <0%> (+1.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9458880...2ec4c9d. Read the comment docs.

@bkcsoft bkcsoft added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 18, 2018
@jonasfranz jonasfranz added type/enhancement An improvement of existing functionality topic/ui Change the appearance of the Gitea UI labels Oct 18, 2018
@lafriks lafriks added this to the 1.6.0 milestone Oct 19, 2018
@@ -63,6 +63,10 @@ func CreateCodeComment(ctx *context.Context, form auth.CodeCommentForm) {
}
}
}
reviewID := review.ID
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you putting this in an extra variable instead of directly modifiying review.ID?

Copy link
Member

@techknowlogick techknowlogick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same nit as @kolaente, but otherwise LGTM.

@bkcsoft bkcsoft added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Oct 20, 2018
@jonasfranz
Copy link
Member Author

@kolaente @techknowlogick done

@bkcsoft bkcsoft added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 22, 2018
@jonasfranz
Copy link
Member Author

@go-gitea/owners Drone isn't reporting a status

@filipnavara
Copy link
Contributor

filipnavara commented Oct 22, 2018

GitHub is still working through the backlogs (https://status.github.com/), but it should mostly work now.

@techknowlogick techknowlogick merged commit f38fce9 into go-gitea:master Oct 22, 2018
@techknowlogick
Copy link
Member

@JonasFranzDEV please send backport.

@jonasfranz jonasfranz mentioned this pull request Oct 23, 2018
@techknowlogick techknowlogick added backport/done All backports for this PR have been created and removed backport/v1.6 labels Oct 23, 2018
@lafriks lafriks removed this from the 1.6.0 milestone Oct 24, 2018
@lafriks lafriks added this to the 1.7.0 milestone Oct 24, 2018
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI type/bug type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Order code comments by review
8 participants