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(receive): --base-url option and GHE_HOST #1719

Merged
merged 3 commits into from Aug 29, 2022

Conversation

wgillaspy
Copy link
Contributor

@wgillaspy wgillaspy commented Aug 16, 2022

When testing probots on a self-hosted enterprise github instance, the command probot receive -e push -p test/test-push.json ./index.js does not recognize the GHE_HOST present in the .env file and does not allow the baseUrl to be modified in the receive arguments.

This change allows the GHE_HOST value in the .env file to be recognized and also allows the host to be modified in the arguments of the command. Basically a copy and paste from read-cli-options.ts.

fixes #1556
fixes #1333

@wgillaspy wgillaspy requested a review from a team as a code owner August 16, 2022 14:07
@welcome
Copy link

welcome bot commented Aug 16, 2022

Thanks for opening this pull request! A contributor should be by to give feedback soon. In the meantime, please check out the contributing guidelines and explore other ways you can get involved.

Copy link
Contributor

@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.

Code changes look good! I'll merge it in as is.

What do you think about mentioning the new option in docs/simulating-webhooks.md? Feel free to send a follow up PR

@gr2m gr2m changed the title Fixes: probot receive does not respect GHE_HOST fix(receive): --base-url option and GHE_HOST Aug 29, 2022
@gr2m gr2m enabled auto-merge (squash) August 29, 2022 19:32
@gr2m gr2m merged commit 68c9b91 into probot:master Aug 29, 2022
@welcome
Copy link

welcome bot commented Aug 29, 2022

Thanks for your contribution to probot! 🎉
Congrats!

@github-actions
Copy link

🎉 This PR is included in version 12.2.7 🎉

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
2 participants