PR Workflow Commands¶
Streamline pull request creation, review, and deployment with 6 specialized commands.
Commands¶
/pr-desc [ticket-number]
¶
Generate comprehensive PR descriptions from git changes.
Usage:
What it detects: - Drupal configuration changes - Database updates - WordPress ACF changes - Custom post types - File changes and additions - Breaking changes
/pr-create-pr [ticket-number]
¶
Create pull request directly on GitHub with generated description.
Usage:
Requires: GitHub CLI (gh
) authenticated
/pr-review [pr-number|url]
¶
Review existing pull requests with detailed AI-assisted feedback.
Usage:
/pr-commit-msg
¶
Generate conventional commit messages from staged changes.
Usage:
/pr-analysis [focus]
¶
Analyze PR size, breaking changes, and generate test plan.
Usage:
/pr-analysis # Run all analyses
/pr-analysis size # Focus on size only
/pr-analysis breaking # Focus on breaking changes only
/pr-analysis testing # Focus on test plan only
Focus options:
- size
- PR size and complexity assessment
- breaking
- Breaking changes detection
- testing
- Test plan generation
/pr-release [focus]
¶
Generate changelog, deployment checklist, and update PR.
Usage:
/pr-release # Generate all artifacts
/pr-release changelog # Focus on changelog only
/pr-release deploy # Focus on deployment checklist only
/pr-release update # Update PR with release info
Focus options:
- changelog
- Generate changelog from commits
- deploy
- Create deployment checklist
- update
- Update PR description
Workflows¶
Complete PR Workflow¶
# 1. During development
/pr-commit-msg # For each commit
# 2. Before creating PR
/quality-standards # Check code standards
/security-scan secrets # Check for exposed secrets
/pr-desc PROJ-123 # Generate PR description
# 3. Create PR
/pr-create-pr 123
# 4. Before release
/pr-analysis # Analyze changes
/pr-release # Generate release artifacts
Integration with Kanopi Tools¶
PR workflow commands automatically integrate with Kanopi's DDEV commands:
# The /pr-analysis command includes these checks:
ddev composer code-check # Drupal quality checks
ddev composer phpstan # Static analysis
ddev composer phpcs # Code standards
ddev cypress-run # E2E tests (if configured)
See Kanopi Tools for more information.
Next Steps¶
- Quick Start - Common workflow examples
- Commands Overview - All commands
- Accessibility Commands - WCAG compliance