Skip to content

Fixed repo link in generated comment for cross repository dependency (#9863) - #9935

Merged
lafriks merged 1 commit into
go-gitea:release/v1.11from
6543-forks:backport_9863
Jan 22, 2020
Merged

lafriks merged 1 commit into
go-gitea:release/v1.11from
6543-forks:backport_9863

Conversation

@6543

@6543 6543 commented Jan 22, 2020

Copy link
Copy Markdown
Member

Backport #9863

…o-gitea#9863)

* fixed link to issue in issue comments after adding/removing a dependency, before links assumed the issue was in the same repository. also changed the format of the displayed issue since the issue will not necessarily be in the same repo

* based on pr comments, changed to use HTMLURL instead of piecing together the issue url, and added an if statement around the issue link display as a nil protection

* only showing repo name in dependency comment if the issue is from another repo

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jan 22, 2020
@lafriks lafriks added this to the 1.11.0 milestone Jan 22, 2020
@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 Jan 22, 2020
@lafriks
lafriks merged commit 128cc34 into go-gitea:release/v1.11 Jan 22, 2020
@6543
6543 deleted the backport_9863 branch January 22, 2020 11:31
@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

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants