-
Notifications
You must be signed in to change notification settings - Fork 1
Add plugin initializer and workflow template #2
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
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughA new plugin initialization workflow is introduced, including a CLI script and a templated GitHub Actions workflow. The CI workflow is refactored to use a template-based approach, replacing the old configuration. The Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI Script (init-plugin.php)
participant File System
participant Composer
participant GitHub Actions Workflow
User->>CLI Script (init-plugin.php): Run plugin initialization
CLI Script (init-plugin.php)->>File System: Check for template file
CLI Script (init-plugin.php)->>User: Prompt for plugin slug
User->>CLI Script (init-plugin.php): Enter slug
CLI Script (init-plugin.php)->>File System: Create new plugin file from template
CLI Script (init-plugin.php)->>File System: Generate CI workflow from template
CLI Script (init-plugin.php)->>User: Confirm creation
User->>Composer: Run "init-plugin" script
Composer->>CLI Script (init-plugin.php): Execute initialization process
GitHub Actions Workflow->>File System: On push/tag, run CI/build/release jobs
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~15–20 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary
plugin-skeleton.php.dist)bin/init-plugin.phpto create a plugin file from the template and generate a CI workflowgenerate-header.phpto look for the new plugin fileinit-plugincommand via composer.gitignoreTesting
composer installcomposer testhttps://chatgpt.com/codex/tasks/task_e_688b46f944208329a38e1ccd60339373
Summary by CodeRabbit