Loading...
Loading...
End-to-end workflow for processing pull requests from review to merge
npx skill4agent add squirrel289/pax process-prowner/repoyolocollaborativemergesquashrebaserun-local-checks = trueresolve-comments = trueWhen interaction-mode = yolo:
- Complete entire workflow without confirmation
- Make all decisions automatically
- Auto-resolve issues where possible
- Report only final summaryUser: "Process PR #42 in YOLO mode"
Agent executes full workflow:
1. Fetches PR, checks status (parallel)
2. Runs local tests (parallel)
3. Addresses 3 review comments
4. Resolves threads
5. Pushes fixes
6. Waits for CI (all pass)
7. Verifies approvals (2 found)
8. Merges PR (squash)
9. Deletes branch
Reports: "PR #42 processed and merged. Addressed 3 comments, all checks pass, merged to main."When interaction-mode = collaborative:
- Show progress at each stage
- Request confirmation for major decisions
- Present issues for user guidance
- Allow intervention at checkpointsUser: "Process PR #42"
Agent: "Starting PR #42 processing...
Stage 1: Initial Assessment
✅ PR details fetched
✅ Reviews: 2 approvals
⚠️ Unresolved comments: 3
Should I proceed to address the comments? (yes/no/show)"
User: "show"
[Shows 3 comments]
User: "yes"
Agent: "Addressing comments...
✅ Comment 1: Added error handling
✅ Comment 2: Fixed typo
✅ Comment 3: Clarified with reply
Pushing changes and waiting for CI..."
[CI completes]
Agent: "All checks pass. Ready to merge.
Method: Squash and merge
Delete branch: Yes
Proceed? (yes/no)"
User: "yes"
Agent: "✅ PR #42 merged successfully"Stage 1: Parallel assessment
Stage 2: Sequential local checks
Stage 3: Sequential comment resolution
Stage 4: Parallel final verification
Stage 5: Sequential mergeParameters:
run-local-checks: false
resolve-comments: false (assume resolved)
Workflow:
1. Verify CI and approvals
2. Merge immediatelyParameters:
run-local-checks: true
resolve-comments: true
interaction-mode: collaborative
Workflow:
1. Full local verification
2. Interactive comment resolution
3. Manual merge confirmationParameters:
pr-number: [42, 43, 44, 45]
interaction-mode: yolo
Workflow:
1. Process PRs in parallel using parallel-execution
2. Each PR follows full process-pr workflow
3. Report summary of all PRsTASK: Process PR #42
STATUS: Complete
STAGES COMPLETED:
✅ Stage 1: Initial Assessment (3 checks)
✅ Stage 2: Local Verification (tests, lint, build)
✅ Stage 3: Address Feedback (3 comments resolved)
✅ Stage 4: Final Verification (all pass)
✅ Stage 5: Merge (squash method)
SUMMARY:
- PR #42: "Add authentication middleware"
- Comments addressed: 3
- Files changed: 4
- Tests: All passing
- Approvals: 2 (alice, bob)
- Merge method: Squash
- Branch: feature-auth (deleted)
RESULT: Successfully merged to main
TIME: 8 minutes (5min CI wait)PR Processing: #42
Current Stage: 3/5 - Addressing Feedback
Progress: [████████░░] 80%
✅ Stage 1: Initial Assessment
✅ Stage 2: Local Verification
⏳ Stage 3: Addressing Feedback (2/3 comments)
⬜ Stage 4: Final Verification
⬜ Stage 5: Merge
Current Action: Resolving review thread on auth.ts:42
Waiting for: User confirmation to proceed
Next: 1 more comment, then final checksUser: "Process PR #42 end-to-end"
Execution:
- Uses: process-pr (this workflow)
- Mode: collaborative (default)
- Stages: All 5 stages
- Output: Interactive progress updatesUser: "Process all approved PRs"
Execution:
1. List open PRs
2. Filter for approved PRs
3. Use parallel-execution to spawn:
- process-pr for PR #42
- process-pr for PR #43
- process-pr for PR #44
4. Each uses yolo mode
5. Report summary of allUser: "Set up automated PR pipeline"
Execution:
1. Monitor for new reviews/approvals
2. When PR approved:
- Trigger process-pr in yolo mode
- Auto-merge if all checks pass
3. Notify on completionPURPOSE:
End-to-end PR processing from review to merge
COMPOSITION:
parallel-execution + sequential-execution + pull-request-tool +
resolve-pr-comments + merge-pr + (yolo OR collaborative)
MODES:
YOLO: Fully autonomous end-to-end
Collaborative: Interactive with checkpoints
STAGES:
1. Initial Assessment (parallel)
2. Local Verification (sequential)
3. Address Feedback (sequential)
4. Final Verification (parallel)
5. Merge (sequential)
PARAMETERS:
pr-number: Required (single or array)
repository: Required (owner/repo)
interaction-mode: yolo or collaborative
merge-method: merge/squash/rebase
delete-branch: true (default)
run-local-checks: true (default)
resolve-comments: true (default)
OPTIMIZATION:
- Parallel where possible (assessment, verification)
- Sequential where needed (comments, merge)
- Mixed for optimal speed
SAFETY:
Always verify:
- Required approvals
- All checks pass
- No conflicts
- Correct base branch
Never:
- Merge with failing tests
- Skip approvals
- Override protection