Automate GitHub issue triage with CrewAI.
- Fetches new GitHub issues
- Classifies by type and priority
- Suggests assignees
- Applies labels, assigns, and comments via GitHub API
- Python 3.9+
- CrewAI
- Environment variables:
OPENAI_API_KEYGITHUB_TOKEN(with repo scope)GITHUB_REPO(format:owner/repo_name)
- Install dependencies:
pip install crewai requests pyyaml
- Set environment variables:
$env:OPENAI_API_KEY="sk-..." $env:GITHUB_TOKEN="ghp_..." $env:GITHUB_REPO="owner/repo_name"
- Run the bot:
python main.py
agents.yaml– Agent definitionstasks.yaml– Task definitionstools/github_tool.py– GitHub API integrationcrew.py– Crew and workflow setupmain.py– Entry point
Ready to deploy in CrewAI Enterprise.