|
|
|
@ -18,7 +18,6 @@ import ( |
|
|
|
|
"code.gitea.io/gitea/modules/git" |
|
|
|
|
"code.gitea.io/gitea/modules/notification" |
|
|
|
|
"code.gitea.io/gitea/modules/storage" |
|
|
|
|
"code.gitea.io/gitea/modules/util" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
// NewIssue creates new issue with labels for repository.
|
|
|
|
@ -201,7 +200,7 @@ func GetRefEndNamesAndURLs(issues []*issues_model.Issue, repoLink string) (map[i |
|
|
|
|
for _, issue := range issues { |
|
|
|
|
if issue.Ref != "" { |
|
|
|
|
issueRefEndNames[issue.ID] = git.RefEndName(issue.Ref) |
|
|
|
|
issueRefURLs[issue.ID] = git.RefURL(repoLink, util.PathEscapeSegments(issue.Ref)) |
|
|
|
|
issueRefURLs[issue.ID] = git.RefURL(repoLink, issue.Ref) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return issueRefEndNames, issueRefURLs |
|
|
|
|