GitHub Team Collaboration
A comprehensive toolkit for managing GitHub team workflows, code reviews, and project coordination.
Features
- Pull Request Automation: Auto-assign reviewers, check PR status, merge strategies
- Issue Management: Triage, label, assign, and track issues
- Sprint Planning: Milestone management, burndown charts, velocity tracking
- Team Metrics: PR review time, issue resolution time, contributor stats
- Workflow Automation: Branch protection, status checks, release management
Usage
Manage Pull Requests
from scripts.github_team import list_open_prs, assign_reviewers
# List open PRs
prs = list_open_prs("myorg", "myrepo")
# Auto-assign reviewers
assign_reviewers("myorg", "myrepo", 123, ["alice", "bob"])
Track Sprint Progress
from scripts.github_team import get_milestone_progress
# Get sprint progress
progress = get_milestone_progress("myorg", "myrepo", "Sprint-15")
print(f"Closed: {progress['closed_issues']}/{progress['total_issues']}")
Team Metrics
from scripts.github_team import get_team_metrics
# Analyze team metrics
metrics = get_team_metrics("myorg", "myrepo", days=30)
print(f"Avg review time: {metrics['avg_review_time']} hours")
GitHub API Authentication
Set your GitHub token as an environment variable:
export GITHUB_TOKEN="ghp_your_token_here"
Supported Operations
- Repository management
- Pull request lifecycle
- Issue tracking and triage
- Milestone and project management
- Team member activity
- Release management
- Webhook configuration