Skip to content
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

Merged
merged 5 commits into from
May 14, 2020

Conversation

gr2m
Copy link
Member

@gr2m gr2m commented May 14, 2020

fixes #268, ping @ericsciple

@gr2m gr2m force-pushed the 268/env-github-api-url branch from 27d615a to 9830d68 Compare May 14, 2020 19:11
@gr2m gr2m force-pushed the 268/env-github-api-url branch from 9830d68 to 230983b Compare May 14, 2020 19:12
Copy link
Member Author

@gr2m gr2m left a 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',
Copy link
Member Author

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

@gr2m gr2m merged commit 543f40b into master May 14, 2020
@gr2m gr2m deleted the 268/env-github-api-url branch May 14, 2020 19:34
@semantic-release-bot
Copy link
Collaborator

🎉 This PR is included in version 7.0.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RequestError [HttpError]: Cookies must be enabled to use GitHub.
2 participants