-
Notifications
You must be signed in to change notification settings - Fork 86
Add plugin dependencies support with --with-dependencies flag and install-dependencies command #469
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
base: main
Are you sure you want to change the base?
Conversation
…tall-dependencies command Co-authored-by: swissspidy <[email protected]>
Co-authored-by: swissspidy <[email protected]>
Co-authored-by: swissspidy <[email protected]>
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: swissspidy <[email protected]>
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: swissspidy <[email protected]>
This comment was marked as resolved.
This comment was marked as resolved.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements comprehensive plugin dependencies support for WordPress 6.5+ by adding the --with-dependencies flag to the plugin install command and a new plugin install-dependencies subcommand.
Key Changes
- Added
--with-dependenciesflag that recursively resolves and installs plugin dependencies from the WordPress.org API or installed plugin headers - Implemented
plugin install-dependenciescommand to install dependencies of already-installed plugins without activating the main plugin - Added comprehensive Behat test scenarios covering various dependency installation workflows
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| src/Plugin_Command.php | Core implementation: adds dependency resolution logic, recursive collection, and WordPress 6.5+ version checks |
| composer.json | Registers the new plugin install-dependencies subcommand |
| features/plugin-dependencies.feature | Comprehensive test scenarios for both new features with WordPress version compatibility tags |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
…al output Co-authored-by: swissspidy <[email protected]>
Plugin Dependencies Support Implementation - COMPLETE ✅
This PR successfully implements plugin dependencies support for WordPress 6.5+ as requested in the issue.
Features Implemented
--with-dependenciesflag forplugin installplugin install-dependenciescommand--activateand--activate-networkflags for dependenciesRequires PluginsheaderDependencies display in
plugin getrequires_pluginsfieldImplementation Details
plugins_api()for plugins not yet installedTesting
features/plugin-dependencies.feature@require-wp-6.5for WordPress version compatibilityCode Quality
Files Changed
src/Plugin_Command.php: +163 lines (main implementation)composer.json: +1 line (register new command)features/plugin-dependencies.feature: +131 lines (tests)All requirements from the original issue have been fully implemented and tested.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.