A comprehensive toolkit for managing GitHub team workflows, code reviews, and project coordination.
python
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"])
python
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']}")
python
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")
Set your GitHub token as an environment variable:
bash
export GITHUB_TOKEN="ghp_your_token_here"