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

Add a GitHub Hosting Queue to maintain PR environments. #151

wants to merge 200 commits into
base: 7.x-1.x


Copy link

commented Jul 3, 2019

This queue will poll GitHub API and automatically create an environment for every PR.

There's a few things we still want to add here, but it's complex, so pushing working code step by step.

Once you have added your API key and have a Project setup, you can call this drush command to create an environment for every PR:

drush @hostmaster hosting-github
jonpugh added 30 commits Jul 3, 2019
Properly handle the PR data. The KNPLabs github API returns are hard …
…coded to "associative". So we have to convert because webhooks deliver PR as objects. See ResponseMediator for the hardcoded param to json_decode().
Issue #2663710: Show the retry button on any completed task. Change t…
…he name of the button to "Run Again" if it didn't end in error.
Add list of PRs to Branch/Tag selector in New Environment form, pass PR
data to submit function, and be sure to set right remote URL if it is a
jonpugh and others added 30 commits Jul 31, 2019
Improve Deploy hook: use git reset --hard origin/$BRANCH to force the…
… local site to match the remote ref. This handles forced pushes now.
Fixing if statement for passing github_deployment_id as drush option.…
….. I don't know if I'm using drush option for this anymore though.
Add drush hook for provision-test so that "provision_prepare_environm…
…ent()" is kicked off during test calls too.
Add 'Enable GitHub Auto-Merge' as a setting: sends the "auto_merge" p…
…aram to the deployment, telling github to attempt to automatically merge changes to the primary branch. Then, catch the error we get when GitHub can't merge, and create a new deployment without the "auto_merge" option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.