Loading...
Loading...
Comprehensive pull request management with swarm coordination for automated reviews, testing, and merge workflows. Use for PR lifecycle management, multi-reviewer coordination, conflict resolution, and intelligent branch management.
npx skill4agent add vamseeachanta/workspace-hub github-pr-manager# Check GitHub CLI authentication
gh auth status
# Create a PR with description
gh pr create --title "Feature: New API endpoint" --body "Implementation details..." --base main
# Review PR status
gh pr status
# List open PRs
gh pr list --state open| Capability | Description |
|---|---|
| Multi-reviewer coordination | Swarm agents for parallel code review |
| Automated conflict resolution | Intelligent merge strategies |
| Comprehensive testing | Integration with CI/CD validation |
| Real-time progress tracking | GitHub issue coordination |
| Branch management | Synchronization and cleanup |
// Initialize review swarm
// Orchestrate review process
task: "Complete PR review with testing and validation",
strategy: "parallel",
priority: "high"
})# Create PR
gh pr create \
--repo owner/repo \
--title "feat: Integration between packages" \
--head feature-branch \
--base main \
--body "## Summary
- Added new integration
- Updated dependencies
- Fixed compatibility issues"
# View PR details
gh pr view 54 --json files,additions,deletions,title,body
# Add reviewers
gh pr edit 54 --add-reviewer user1,user2
# Check PR status
gh pr checks 54# Get PR diff
gh pr diff 54
# Approve PR
gh pr review 54 --approve --body "LGTM! All checks pass."
# Request changes
gh pr review 54 --request-changes --body "Please address the following..."
# Comment on PR
gh pr comment 54 --body "Consider refactoring this section."# Check merge readiness
gh pr status
# Merge with squash
gh pr merge 54 --squash --delete-branch \
--subject "feat: Complete integration" \
--body "Comprehensive integration with swarm coordination"
# Merge with rebase
gh pr merge 54 --rebase --delete-branch[Single Message - Complete PR Management]:
// Initialize coordination
// Create and manage PR
Bash("gh pr create --repo owner/repo --title '...' --head '...' --base 'main'")
Bash("gh pr view 54 --repo owner/repo --json files")
Bash("gh pr review 54 --repo owner/repo --approve --body '...'")
// Execute tests and validation
Bash("npm test && npm run lint && npm run build")
// Track progress
TodoWrite({ todos: [
{ id: "review", content: "Complete code review", status: "completed" },
{ id: "test", content: "Run test suite", status: "completed" },
{ id: "merge", content: "Merge when ready", status: "pending" }
]}) topology: "mesh", // mesh, hierarchical, star, ring
maxAgents: 4,
strategy: "balanced"
}) type: "reviewer",
name: "PR Reviewer",
capabilities: ["code-review", "security-audit", "performance-check"]
})// Store PR state
action: "store",
key: "pr/54/status",
value: JSON.stringify({
timestamp: Date.now(),
status: "approved",
reviewers: ["user1", "user2"]
})
})
// Retrieve PR state
action: "retrieve",
key: "pr/54/status"
})| Skill | Integration |
|---|---|
| Link PRs to issues |
| Coordinate release PRs |
| Detailed code analysis |
| SPARC development methodology |
gh auth status || (echo 'GitHub CLI not authenticated' && exit 1)
git status --porcelain
gh pr list --state open --limit 1 >/dev/null || echo 'No open PRs'
npm test --silent || echo 'Tests may need attention'gh pr status || echo 'No active PR in current branch'
git branch --show-current
gh pr checks || echo 'No PR checks available'
git log --oneline -3