-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: publish a release when env.GITHUB_URL is set to https://github.com #269
Conversation
27d615a
to
9830d68
Compare
9830d68
to
230983b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pvdlg I'll go ahead and merge it as this is a hot fix. We can do follow up PRs if you find any problems with the changes
* @param {String} [githubApiPathPrefix=env.GH_PREFIX || env.GITHUB_PREFIX || ''] The GitHub Enterprise API prefix. | ||
* @return {Object} A `nock` object ready to respond to a github authentication request. | ||
*/ | ||
function authenticate( | ||
env = {}, | ||
{ | ||
githubToken = env.GH_TOKEN || env.GITHUB_TOKEN || 'GH_TOKEN', | ||
githubUrl = env.GH_URL || env.GITHUB_URL || 'https://api.github.com', | ||
githubUrl = env.GITHUB_API_URL || env.GH_URL || env.GITHUB_URL || 'https://api.github.com', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it feels a bit odd that we replicate the implementation of env variable parsing here. We basically test our test helper now, instead of the actual implementation. But I don't have a better idea
🎉 This PR is included in version 7.0.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fixes #268, ping @ericsciple