Git operations with Moodle plugin development workflow and intelligent commit messages
Manages Moodle plugin Git workflows with Git Flow branching, intelligent commit messages, and release management. Use for feature development, version tagging, and MDL tracker integration.
/plugin marketplace add astoeffer/moodle-plugin-marketplace/plugin install moodle-dev-pro@astoeffer-dev-plugins/sc:git [operation] [args] [--smart-commit] [--moodle-tracker MDL-XXXXX]
Key behaviors:
<type>(<scope>): <subject> (#issue) or MDL-XXXXX mod_nextcloudfolder: <description>/sc:git feature issue-53-subfolder-browse
# Creates feature/issue-53-subfolder-browse from develop
# Sets up tracking and provides commit message template
/sc:git commit --moodle-tracker MDL-12345
# Generates: "MDL-12345 mod_nextcloudfolder: <analyzed changes>"
# Or conventional: "feat(oauth2): Add subfolder browsing (#53)"
/sc:git release 2.1.0
# Creates release/2.1.0 from develop
# Updates version.php with YYYYMMDDXX format
# Prepares CHANGELOG.md entry
# Guides through merge to main and develop
/sc:git hotfix 2.0.1
# Creates hotfix/2.0.1 from main
# Updates version.php and CHANGELOG.md
# Manages merge to both main and develop
feat: New feature (backward compatible)fix: Bug fixdocs: Documentation onlystyle: Code formatting (PSR-12 compliance)refactor: Code restructuringtest: PHPUnit or Behat testschore: Version bumps, dependenciesFollowing Semantic Versioning and Moodle conventions:
/sc:git feature issue-47-oauth-fixes
# Switches to develop, pulls latest, creates feature branch
# Provides template: "feat(oauth2): <description> (#47)"
/sc:git commit --moodle-tracker MDL-78901
# Analyzes changes and generates:
# "MDL-78901 mod_nextcloudfolder: Fix OAuth2 token refresh"
/sc:git release 2.2.0
# 1. Creates release/2.2.0 from develop
# 2. Updates version.php: $plugin->version = 2024011500
# 3. Updates CHANGELOG.md with version entry
# 4. Guides merge to main with tag v2.2.0
# 5. Ensures backmerge to develop
Will:
Will Not: