github/docs Pull Requests have awful titles.
To make it easier to follow changes, this gives you AI-powered summaries of their Pull Requests
Check out pr.tim.ad to see it in action!
src- Python code for fetching PRs, calling OpenRouter to analyze PRsgenerate_summary.py- Script to generate summaries for a specific PRgenerate_website_data.py- Script to generate thepr-data.jsonfilelist_prs_without_summaries.py- Script to list PRs that need summaries
app- React web app for displaying PR summaries, hosted on GitHub Pagesdata- JSON files containing PR data summaries forgithub/docs.github/workflowsdeploy-website.yml- deploy the React app with the Pull Request data to GitHub Pagesgenerate.yml- list PRs that need summaries and generate them, push them todata/
- Install Python dependencies:
pip install -r requirements.txt
- Set your OpenRouter API key in your environment:
export OPENROUTER_API_KEY='your_api_key'
- Run the analysis script:
python3 generate_summary.py --repo github/docs --pr 12345
- Analyze some PRs to create data files
- Run
generate_website_data.pyto generate thepr-data.jsonfile - Install Node.js dependencies:
cd app npm install - Start the React app:
npm start
The website will be available at http://localhost:3000.
