Skip to content

Unable to create a GH permalink - #1977

Merged
Alex Ross (alexr00) merged 4 commits into
masterfrom
alexr00/issue#1878
Jul 14, 2020
Merged

Unable to create a GH permalink#1977
Alex Ross (alexr00) merged 4 commits into
masterfrom
alexr00/issue#1878

Conversation

@alexr00

Copy link
Copy Markdown
Member

Fixes #1878

Comment thread src/issues/util.ts Outdated
}
const pathSegment = document.uri.path.substring(repository.rootUri.path.length);
const expr = /^((git\@github\.com\:)|(https:\/\/github\.com\/))(.+\/.+)\.git$/;
const expr = /^((git\@github\.com\:)|(https:\/\/github\.com\/))(.+\/.+)(\.git)?$/;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it would be good to reuse the code we have for parsing github urls, new Protocol(upstream.fetchUrl), it has repositoryName and owner properties

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I had forgotten about Protocol, thanks!

@alexr00
Alex Ross (alexr00) merged commit db28cad into master Jul 14, 2020
@RMacfarlane
Rachel Macfarlane (RMacfarlane) deleted the alexr00/issue#1878 branch November 12, 2020 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to create a GH permalink

2 participants