-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Remove branch URL before IssueRefURL #15968
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
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.
Thanks! One nit, see code comment.
Ffor reference; the repoLink
is prepended to the URLs here already
Line 167 in cc7e1b8
issueRefURLs[issue.ID] = git.RefURL(repoLink, util.PathEscapeSegments(issue.Ref)) |
Looks like it's been broken for a long time, then. Seems like few users rely on it 🤔 |
Sorry, please revert my suggestion. The non |
Makes sense to me now, thank you. I should have given the cases a second thought, I just assumed that the data was now contained globally, because both cases had it prepended before. |
Revert change for account / org dashboard where IssueRefURLs do not contain the full repo URL (case RepoLink is not true) Co-authored-by: Norwin <[email protected]> Remove trailing whitespace from PR review
Revert change for account / org dashboard where IssueRefURLs do not contain the full repo URL (case RepoLink is not true) Co-authored-by: Norwin <[email protected]> Remove trailing whitespace from PR review
My attempt to fix #15967 (duplicate Owner/Branch in URL when linking to a branch from an issue).
It appears to me as if
IssueRefURLs
already contain the full valid URL by now and thus prepending the Owner and Branch leads to duplication.