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 configurable and extensible git hooks #1

Open
wants to merge 49 commits into
base: 7.x-3.x
Choose a base branch
from

Conversation

jonpugh
Copy link
Member

@jonpugh jonpugh commented Feb 16, 2018

This is bringing devshop functionality to aegir core.

See https://www.drupal.org/project/hosting_git/issues/2897894

Remaining tasks:

  • Add travis tests that work with hosting_git PRs
  • Add to tests to ensure correct git hooks are run.

jonpugh and others added 30 commits July 27, 2017 15:12
- Add 'git_hooks' column to {hosting_git} table.
- Add 'Git Hooks' field listing checkboxes of available hooks along with code for insert and update. (For site nodes only.)
- Add 'hook_hosting_git_hooks()' to allow modules to return list of git hooks.
- Add git_hooks as a provision context property.
- Add git hooks options to Git Checkout and Pull tasks.
- Add code to run each git hook on git checkout and git pull tasks. If git pull or checkout is being run on a platform, run the git hooks for every site on the platform.
- Adds hook_hosting_git_hooks() and hook_provision_git_hooks() that can be implemented by any module.
…alias_files() instead of messing with drush context switching.
…atform and site verify tasks after tasks complete.
…mote for our desired repo_url is set. If not, throw a warning.
- Add Symfony Process component.
- Only run composer install if git hook is configured.
jonpugh and others added 17 commits January 29, 2018 13:50
…Pull/Checkout:

  - Add settings for "default git hooks" which sets what is selected on node/add/platform or node/add/site.
  - Add settings for 'allow git hooks config on sites' and platforms.
  - Moved settings form around.
…site should show the git fieldset: _hosting_git_type_allowed() depends on two variables.

-
… on provision verify if a composer.json file exists.
…debase by copying the hosting git project in.
@jonpugh
Copy link
Member Author

jonpugh commented Feb 16, 2018

Working on getting hosting_git testable on travis. I had to fix the docker images so :latest actually points to latests.

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

Successfully merging this pull request may close these issues.

2 participants