-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fixed repo link in generated comment for cross repository dependency #9863
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
Conversation
…ncy, 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
Codecov Report
@@ Coverage Diff @@
## master #9863 +/- ##
=========================================
Coverage ? 42.29%
=========================================
Files ? 607
Lines ? 79356
Branches ? 0
=========================================
Hits ? 33565
Misses ? 41650
Partials ? 4141
Continue to review full report at Codecov.
|
…her the issue url, and added an if statement around the issue link display as a nil protection
And I think maybe you should add |
{{if .DependentIssue}} | ||
<div class="detail"> | ||
<span class="octicon octicon-plus"></span> | ||
<span class="text grey"><a href="{{.DependentIssue.HTMLURL}}">{{.DependentIssue.Repo.FullName}}#{{.DependentIssue.Index}} - {{.DependentIssue.Title}}</a></span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If current repo != dependentissue.repo ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Only show repo name if needed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as last commit
Make lg-tm work |
Please send backport |
…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 <[email protected]>
created bakport for you @bhalbright (#9935) |
…9863) (#9935) * 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: Brad Albright <[email protected]> Co-authored-by: Antoine GIRARD <[email protected]>
Thanks @6543 I wasn't going to have time this week, appreciate it. |
Fix issue #9765. When adding or removing a dependency, a comment is generated on each issue. The comment when displayed in the UI assumes that the issue is in the same repository, but with cross repository dependencies, they are not. Fixed to show the full name of the issue and links to the correct issue.