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 hook_deploy_NAME function #5615

Merged
merged 8 commits into from
Jun 7, 2023

Conversation

DieterHolvoet
Copy link
Contributor

I noticed the link behind HOOK_deploy_NAME() in the docs is broken, so I decided to add a HOOK_deploy_NAME function to the repo. An additional benefit is that PHPStorm now autocompletes a basic deploy hook when writing the signature in a deploy.php file:

CleanShot 2023-06-05 at 14 38 56
CleanShot 2023-06-05 at 14 39 03

Let me know if the drush.api.php file is better suited in a different directory than includes.

Copy link
Member

@weitzman weitzman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say that we put this in /docs dir? Or the root dir?

includes/drush.api.php Outdated Show resolved Hide resolved
includes/drush.api.php Outdated Show resolved Hide resolved
includes/drush.api.php Outdated Show resolved Hide resolved
@DieterHolvoet
Copy link
Contributor Author

I moved it to the project root.

drush.api.php Outdated Show resolved Hide resolved
drush.api.php Outdated Show resolved Hide resolved
DieterHolvoet and others added 2 commits June 7, 2023 15:39
Co-authored-by: Moshe Weitzman <weitzman@tejasa.com>
Co-authored-by: Moshe Weitzman <weitzman@tejasa.com>
docs/deploycommand.md Outdated Show resolved Hide resolved
drush.api.php Show resolved Hide resolved
@weitzman weitzman merged commit 0944222 into drush-ops:12.x Jun 7, 2023
1 of 2 checks passed
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.

None yet

2 participants