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)

Fix go-gitea#11499

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: techknowlogick <[email protected]>
  • Loading branch information
2 people authored and Yohann Delafollye committed Jul 31, 2020
1 parent 55bcd1c commit f10fe09
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 f10fe09

Please sign in to comment.