Skip to content

Commit

Permalink
API PullReviewComment HTMLPullURL should return the HTMLURL (go-gitea…
Browse files Browse the repository at this point in the history
…#11501) (go-gitea#11533)

Fix go-gitea#11499

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

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
  • Loading branch information
zeripath and techknowlogick authored May 21, 2020
1 parent 8525a48 commit 8bde2e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/convert/pull_review.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func ToPullReviewCommentList(review *models.Review, doer *models.User) ([]*api.P
OrigCommitID: comment.OldRef,
DiffHunk: patch2diff(comment.Patch),
HTMLURL: comment.HTMLURL(),
HTMLPullURL: review.Issue.APIURL(),
HTMLPullURL: review.Issue.HTMLURL(),
}

if comment.Line < 0 {
Expand Down

0 comments on commit 8bde2e9

Please sign in to comment.