Skip to content

NW-16019: Add new hook directories and examples#63

Open
blkperl wants to merge 2 commits into
masterfrom
worktree-imperative-snacking-key
Open

NW-16019: Add new hook directories and examples#63
blkperl wants to merge 2 commits into
masterfrom
worktree-imperative-snacking-key

Conversation

@blkperl

@blkperl blkperl commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • Added support for four new Acquia Cloud hooks with directories for all environments (common/dev/test/prod):
    • 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 sample template scripts for each hook in the samples/ directory
  • Updated README.md with documentation for all new hooks

Test plan

  • Verify all hook directories exist in common, dev, test, and prod
  • Verify sample template files are executable and follow the existing pattern
  • Verify README documentation is accurate and follows existing format

🤖 Generated with Claude Code

blkperl and others added 2 commits June 29, 2026 15:09
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>
@alexxed alexxed requested a review from janusman June 30, 2026 07:34
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.

3 participants