Skip to content

Commit

Permalink
API PullReviewComment HTMLPullURL should return the HTMLURL (#11501)
Browse files Browse the repository at this point in the history
Fix #11499

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

Co-authored-by: techknowlogick <[email protected]>
  • Loading branch information
zeripath and techknowlogick committed May 21, 2020
1 parent b02d2c3 commit 0b8b81e
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 0b8b81e

Please sign in to comment.