Skip to content

Support for custom hostname #15

Description

@derek-rmd

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 git@github.com:, 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions