Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API PullReviewComment HTMLPullURL should return the HTMLURL #11501

Conversation

zeripath
Copy link
Contributor

Fix #11499

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

@zeripath zeripath added type/bug modifies/api This PR adds API routes or modifies them backport/v1.12 labels May 19, 2020
@zeripath zeripath added this to the 1.13.0 milestone May 19, 2020
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 19, 2020
Copy link
Contributor

@CirnoT CirnoT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should add APIPullURL

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 20, 2020
@@ -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(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

damed ok this is completly my fault - at least I had an issue with it first

Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...

@techknowlogick
Copy link
Member

ping LG-TM

@techknowlogick techknowlogick merged commit 0b8b81e into go-gitea:master May 21, 2020
@techknowlogick
Copy link
Member

@zeripath please send backport :)

@zeripath zeripath deleted the fix-11499-HTMLPullURL-should-not-be-API branch May 21, 2020 05:50
zeripath added a commit to zeripath/gitea that referenced this pull request May 21, 2020
@zeripath zeripath added the backport/done All backports for this PR have been created label May 21, 2020
lafriks pushed a commit that referenced this pull request May 21, 2020
ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/api This PR adds API routes or modifies them type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] [API] ListPullReviewComments: HTMLPullURL is not pull.HTMLURL
5 participants