From 0b8b81e02902a5c11829cce7f439f84731a8eaeb Mon Sep 17 00:00:00 2001 From: zeripath Date: Thu, 21 May 2020 03:41:30 +0100 Subject: [PATCH] API PullReviewComment HTMLPullURL should return the HTMLURL (#11501) Fix #11499 Signed-off-by: Andrew Thornton Co-authored-by: techknowlogick --- modules/convert/pull_review.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/convert/pull_review.go b/modules/convert/pull_review.go index 619f9f070e0..032d3617fc2 100644 --- a/modules/convert/pull_review.go +++ b/modules/convert/pull_review.go @@ -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 {