A web application that analyzes GitHub issues from the ESP-IDF repository, providing insights about issue sentiment, priority, and suggested actions.
- Python 3.8 or higher
- pip (Python package installer)
- Git
- Clone the repository:
git clone https://github.com/anastasia-be/test.git
cd test- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate- Install required packages:
pip install -r requirements.txt- Set up your GitHub API token:
- Go to GitHub Settings -> Developer Settings -> Personal Access Tokens
- Generate a new token with
reposcope - Create a
.envfile in the project root and add your token:
GITHUB_TOKEN=your_token_here
- Start the server:
./start_server.sh- Open your web browser and navigate to:
http://127.0.0.1:5001
- Enter an ESP-IDF issue number (e.g., 12786) and click "Analyze Issue"
- Issue details display (title, creator, creation date, status)
- Sentiment analysis
- Priority assessment
- Suggested actions
- Improvement suggestions
- Comment analysis
If you encounter any issues:
- Check the server logs in
server.log - Ensure your GitHub token is valid and has the correct permissions
- Make sure all required packages are installed
- Verify that port 5001 is not in use by another application
To stop the server, run:
./stop_server.shThe application uses the GitHub API to fetch issue data. Please be mindful of API rate limits when making multiple requests.