Browse Source

API PullReviewComment HTMLPullURL should return the HTMLURL (#11501) (#11533)

Fix #11499

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

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
tags/v1.12.0-rc2
zeripath 4 years ago
parent
commit
8bde2e9813
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/convert/pull_review.go

+ 1
- 1
modules/convert/pull_review.go View File

@@ -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 {

Loading…
Cancel
Save