Skip to content

scmmishra/triage-bot

Repository files navigation

Triage Bot

A tool to analyze and triage GitHub issues using OpenAI, helping to identify and group similar feature requests and bug reports.

Features

  • Fetches open issues from a GitHub repository
  • Uses OpenAI to analyze and categorize issues
  • Groups related feature requests
  • Generates tabular reports of issues
  • Caches results to avoid repeated API calls

Setup

  1. Clone this repository
  2. Install dependencies: pip install -e .
  3. Create a .env file with the following variables:
    GITHUB_TOKEN=your_github_token
    OPENAI_API_KEY=your_openai_api_key
    
  4. Modify config.yml with your repository settings

Usage

python main.py

Project Structure

  • main.py: Main entry point for the application
  • config.py: Configuration loading from environment and YAML file
  • config.yml: Project configuration settings
  • github_api.py: Functions for interacting with GitHub API
  • openai_analysis.py: Functions for analyzing issues with OpenAI
  • report.py: Functions for generating and displaying reports

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages