NW-16019: Add new hook directories and examples#63
Open
blkperl wants to merge 2 commits into
Open
Conversation
Added support for four new Acquia Cloud hooks: - pre-site-wipe: Hook that runs before a site is wiped - post-site-wipe: Hook that runs after a site is wiped - post-site-instance-duplicate: Hook that runs after a site instance is duplicated - post-site-associate: Hook that runs after a site is associated with an environment Created: - Hook directories for each environment (common/dev/test/prod) - Sample template scripts in samples/ directory - Documentation in README.md for all new hooks Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Corrected the hook parameters based on the actual implementation in environment-service-go: - Changed 'site' to 'app-name' (application name) - Changed 'target-env' to 'stage' (dev/test/prod) - Updated post-site-instance-duplicate to use 'source-site-name' - Updated post-site-associate to include 'site-name' parameter These changes match how the hooks are actually invoked by the cloud-hooks.sh script in the environment-service-go repository. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
poojapareekacq
approved these changes
Jun 30, 2026
OmkarVarhadi
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pre-site-wipe: Hook that runs before a site is wipedpost-site-wipe: Hook that runs after a site is wipedpost-site-instance-duplicate: Hook that runs after a site instance is duplicatedpost-site-associate: Hook that runs after a site is associated with an environmentsamples/directoryREADME.mdwith documentation for all new hooksTest plan
🤖 Generated with Claude Code