Ran into this even with the GitHub Enterprise GITHUB_API_BASE_URL exported before running the command:
Error: Could not get URL of remote 'master': : Git command "config" [remote.master.url] failed with output "": exit status 1
Found the INPUT_GITHUB_TOKEN env var and it made me curious why the tool isn't using the git credential helper to access it instead, since that's how my PAT (Personal Access Token) is generally used by git to execute commands against the GH Enterprise instance.
It seems odd that despite having that PAT accessible via the GitHub credential helper I would have to submit/export it before issuing changelog-from-release commands.
Ran into this even with the GitHub Enterprise
GITHUB_API_BASE_URL
exported before running the command:Found the
INPUT_GITHUB_TOKEN
env var and it made me curious why the tool isn't using the git credential helper to access it instead, since that's how my PAT (Personal Access Token) is generally used by git to execute commands against the GH Enterprise instance.It seems odd that despite having that PAT accessible via the GitHub credential helper I would have to submit/export it before issuing
changelog-from-release
commands.Looks like it's this call to
git config
that causes the error: https://github.com/rhysd/changelog-from-release/blob/9aec60a12a62714b74cbd9e68f50ef3b6dc4c2b2/git.go#L62