0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-17 23:41:49 +01:00

API PullReviewComment HTMLPullURL should return the HTMLURL (#11501)

Fix #11499

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
zeripath 2020-05-21 03:41:30 +01:00 committed by GitHub
parent b02d2c3772
commit 0b8b81e029
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,7 @@ func ToPullReviewCommentList(review *models.Review, doer *models.User) ([]*api.P
OrigCommitID: comment.OldRef, OrigCommitID: comment.OldRef,
DiffHunk: patch2diff(comment.Patch), DiffHunk: patch2diff(comment.Patch),
HTMLURL: comment.HTMLURL(), HTMLURL: comment.HTMLURL(),
HTMLPullURL: review.Issue.APIURL(), HTMLPullURL: review.Issue.HTMLURL(),
} }
if comment.Line < 0 { if comment.Line < 0 {