A powerful tool that analyzes GitHub issues using AI and provides automated fixes with a beautiful Streamlit web interface.
- π AI-Powered Issue Analysis: Analyze GitHub issues with detailed technical analysis
- π Interactive Dashboards: Visualize issue statistics and trends
- π Auto-Fix Capability: Automatically generate fixes and create pull requests
- π Real-time Monitoring: Track auto-fix task progress
- π― Individual Issue Analysis: Deep dive into specific issues
- π Repository Statistics: Comprehensive repository insights
- Python 3.8+
- GitHub account with repository access
- OpenAI API key
- Composio API key
-
Clone the repository:
git clone <your-repo-url> cd GDev-main
-
Run the installation script:
python install.py
-
Edit the .env file: Add your API keys to the
.envfile:OPENAI_API_KEY=your_openai_api_key_here COMPOSIO_API_KEY=your_composio_api_key_here
-
Clone the repository:
git clone <your-repo-url> cd GDev-main
-
Install core dependencies:
pip install fastapi uvicorn openai python-dotenv pydantic streamlit requests pandas plotly python-multipart
-
Install optional dependencies (if needed):
pip install composio composio-openai langchain langchain-openai
-
Create .env file:
OPENAI_API_KEY=your_openai_api_key_here COMPOSIO_API_KEY=your_composio_api_key_here
First, start the FastAPI server that provides the backend functionality:
python src/main.pyThe API will be available at http://localhost:8000
Note: On first run, you'll need to authorize GitHub access. Follow the URL provided in the console output.
In a new terminal window, start the Streamlit interface:
streamlit run streamlit_app.pyThe Streamlit app will be available at http://localhost:8501
- Enter repository owner and name
- View comprehensive issue statistics
- Analyze issues with AI-powered insights
- Visualize priority and complexity distributions
- Search and filter issues
- Analyze specific issues by number
- Get detailed technical analysis
- View suggested solutions
- Start auto-fix processes
- Start automated fix processes
- Monitor task progress in real-time
- View generated pull request URLs
- Track multiple auto-fix tasks
- Monitor API connection status
- View GitHub integration status
- Check available tools
- Monitor active auto-fix tasks
The backend provides the following endpoints:
GET /- Root endpointGET /health- Health checkGET /repository/{owner}/{repo}/issues- Get analyzed issuesGET /repository/{owner}/{repo}/issues/raw- Get raw issuesGET /repository/{owner}/{repo}/issues/{issue_number}- Analyze specific issueGET /repository/{owner}/{repo}/issues/stats- Get issue statisticsPOST /repository/{owner}/{repo}/issues/{issue_number}/auto-fix- Start auto-fixGET /auto-fix/{task_id}- Get auto-fix status
OPENAI_API_KEY: Your OpenAI API key for AI analysisCOMPOSIO_API_KEY: Your Composio API key for GitHub integration
The API runs on http://localhost:8000 by default. You can modify the base URL in streamlit_app.py if needed:
API_BASE_URL = "http://localhost:8000"-
API Connection Error:
- Ensure the API server is running (
python src/main.py) - Check if port 8000 is available
- Verify the API_BASE_URL in streamlit_app.py
- Ensure the API server is running (
-
GitHub Authorization:
- Follow the authorization URL provided in the console
- Ensure your GitHub account has access to the repositories
-
Missing Dependencies:
- Run
pip install -r requirements.txt - Ensure Python 3.8+ is installed
- Run
-
Auto-fix Failures:
- Check repository permissions
- Ensure the repository is accessible
- Verify branch naming conventions
To run the API with debug information:
python src/main.py --debugGDev-main/
βββ src/
β βββ main.py # FastAPI server
β βββ pr_list.py # PR management
β βββ slack_notification.py # Notifications
βββ streamlit_app.py # Streamlit interface
βββ requirements.txt # Dependencies
βββ README.md # This file
- API Endpoints: Add new endpoints in
src/main.py - Streamlit Pages: Add new pages in
streamlit_app.py - Dependencies: Update
requirements.txt
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
For issues and questions:
- Check the troubleshooting section
- Review the API documentation at
http://localhost:8000/docs - Open an issue on GitHub
Happy Issue Analyzing! πβ¨