github-linker icon indicating copy to clipboard operation
github-linker copied to clipboard

Support for custom hostname

Open derek-rmd opened this issue 5 years ago • 2 comments

First off, thank you for this extension!

Unfortunately, I get back null for the repoUrl

ex. null/blob/9970...7b7e/foo.js#L25-L29

This is because I have the following setup, where I don't use [email protected]:, so that I can associate an ssh key with the remote

# .git
[remote "origin"]
	url = git@github-work:johndoe/repo.git
	fetch = +refs/heads/*:refs/remotes/origin/*
# .ssh
Host github-work
    HostName github.com
    IdentityFile ~/.ssh/github-work
  • Do you know of any workarounds for my setup?
  • OR could you extend support for one of
    • in getGitHubRepoURL to ignore the hostname -- ex. startsWith git@ and returns everything after :
    • add configuration option: githubLinker.repoUrl = '...'

thank you!

derek-rmd avatar May 16 '20 21:05 derek-rmd

Same issue here. Any way to make it work for GitHub Enterprise (github.company.com) ?

obai-d avatar Jul 10 '20 14:07 obai-d

Same issue here. Another extension "Open in Github" fix my problem.

yueneiqi avatar Aug 08 '23 02:08 yueneiqi