From unify_2_1
Complete deployment workflow - commit, PR to staging, review, then staging to develop
npx claudepluginhub na1zzy1/unify_2_1_plugin --plugin unify_2_1commit-messageclaude-haiku-4-5-20251001# Complete Deployment Workflow Automates the full deployment workflow with integrated PR review: 1. Commit feature changes and create PR to staging 2. Automatically review the PR for quality and standards 3. Fix any issues identified in review (with iteration loop) 4. After PR is approved and merged, create PR from staging to develop ## What This Does 1. Calls `/pr-feature-to-staging` to commit and create feature → staging PR 2. Calls `/pr-review` to automatically review the PR 3. If review identifies issues → calls `/pr-fix-pr-review` and loops back to review 4. If review passes → waits...
Automates the full deployment workflow with integrated PR review:
/pr-feature-to-staging to commit and create feature → staging PR/pr-review to automatically review the PR/pr-fix-pr-review and loops back to review/pr-staging-to-develop to create staging → develop PRUse SlashCommand tool to execute:
/pr-feature-to-staging $ARGUMENTS
Expected Output:
Extract from output:
Use SlashCommand tool to execute:
/pr-review [PR_ID]
The review will evaluate:
.claude/rules/python_rules.mdReview Outcomes:
Review output will indicate:
Action: Proceed to Step 4
Review output will indicate:
Action: Proceed to Step 3
Only execute if Step 2 identified issues
Use SlashCommand tool to execute:
/pr-fix-pr-review [PR_ID]
This will:
After fixes are applied:
Iteration Logic:
LOOP while review has active issues:
1. /pr-fix-pr-review [PR_ID]
2. /pr-review [PR_ID]
3. Check review outcome
4. If approved → exit loop
5. If still has issues → continue loop
END LOOP
After PR review passes and is approved, inform user:
✅ PR Review Passed - PR Approved and Ready
PR #[PR_ID] has been reviewed and approved with auto-complete enabled.
Review Summary:
- Code quality: ✓ Passed
- PySpark best practices: ✓ Passed
- ETL patterns: ✓ Passed
- Standards compliance: ✓ Passed
- No merge conflicts
Next Steps:
1. The PR will auto-merge when all policies are satisfied
2. Once merged to staging, I'll create the staging → develop PR
Would you like me to:
a) Create the staging → develop PR now (if staging merge is complete)
b) Wait for you to confirm the staging merge
c) Check the PR status
Enter choice (a/b/c):
User Responses:
mcp__ado__repo_get_pull_request_by_id to check if PR is merged, then guide userUse SlashCommand tool to execute:
/pr-staging-to-develop
This will:
Final Output:
🚀 Deployment Workflow Complete
Feature → Staging:
- PR #[PR_ID] - Reviewed and Merged ✓
Staging → Develop:
- PR #[NEW_PR_ID] - Created and Ready for Review
- URL: [PR_URL]
Summary:
1. Feature PR created and reviewed
2. All quality gates passed
3. PR approved and merged to staging
4. Staging PR created for develop
The workflow is complete. The staging → develop PR is now ready for final review and deployment.
/deploy-workflow "feat(gold): add X_MG_Offender linkage table #45497"
This will:
/deploy-workflow "refactor: optimise session management"
This will:
Scenario: Review finds 3 issues in the initial PR
Step 1: /pr-feature-to-staging "feat: add new table"
→ PR #5678 created
Step 2: /pr-review 5678
→ Found 3 issues:
- Missing type hints in function
- Line exceeds 240 characters
- Missing @synapse_error_print_handler decorator
Step 3: /pr-fix-pr-review 5678
→ Fixed all 3 issues
→ Committed and pushed
→ PR updated
Step 2 (again): /pr-review 5678
→ All issues resolved
→ PR approved ✓
Step 4: Wait for merge confirmation
Step 5: /pr-staging-to-develop
→ PR #5679 created (staging → develop)
Complete!
/pr-feature-to-stagingmcp__ado__repo_list_pull_requests_by_repo_or_project to check existing PRsThe integrated /pr-review checks:
.claude/rules/python_rules.mdAll must pass before proceeding to staging → develop PR.