Closed naholyr closed 5 years ago
It looks like you're misusing parse-git-config
, I see this code:
// First, check whether `origin` remote is on GitHub.
const originRepoName = config.remote.origin && urlToRepoName(config.remote.origin.url)
but in parse-git-config
's doc we can see this remote
property does not exist, you should use config['remote "origin"']
instead of config.remote.origin
:
Debugging the extension, config object format seems OK, I may have read doc for the wrong module or wrong version. Whatever. Digging for a PR.
Gotcha! it was an error in repo name parsing, you were matching only http URLs, not ssh ones, which is the default for me:
Here is my
.git/config
:As you can see, the
origin
remote is properly configured and set to a valid repository (private, could this be an issue?). However simple "#issueNumber" texts are not linked:Is it supposed to work? Is there an issue in my config?