pulldoc is a tool for communicating repository history to LLM! It analyzes GitHub pull request history and automatically generates modification patterns and issue templates, so you can leverage LLM to improve your team's development efficiency!
📊 Pull Request Collection & Analysis
- Automatic collection of PR history through GitHub API
- Efficient retrieval of PRs within specified ranges
- Structured information for merged and unmerged PRs
🤖 AI-Driven Summary Generation
- Support for multiple LLM models including [Bedrock, Huggingface, VertexAI, TogetherAI, Azure, OpenAI, Groq etc.]
- Flexible summary generation with custom prompts
- Multilingual support
- Efficient batch processing for large data volumes
📈 Intelligent Analysis
- Automatic identification of code fix patterns
- Classification and organization of common issues
- Team development trend analysis
- Generation of reusable templates
# Set LLM API Key
export OPENAI_API_KEY="your_openai_api_key" or other LLM provider settings
# Set Github Token (Private Only)
export GITHUB_TOKEN="your_github_token"Using uvx
uvx pulldoc run {owner/repo-name}# Install dependencies (uv recommended)
uv add pulldoc
# or use pip
pip install pulldocpulldoc run {owner/repo-name}# Options
--start INTEGER # starting point of PR number
--end INTEGER # end point of PR number
--model TEXT # LLM model (default: gpt-4o-mini)
--custom-prompt TEXT # custom prompt
--lang TEXT # language (default: en)
--only-total # generate final summary only.
- Execute individually.
# 1. collect PR data
pulldoc collect owner/repo-name --start 100 --end 200
# 2. summarize collected data
pulldoc summarize owner/repo-name --model us.anthropic.claude-sonnet-4-20250514-v1:0 --lang ja
.pulldoc_result/
└── owner/
└── repo-name/
├── raws/
│ ├── pr_001.json
│ └── pr_002.json
├── summaries/
| ├── batch_001_summary.md
| ├── batch_002_summary.md
├── RULES_FOR_AI.md
└── ISSUE_TEMPLATES.md
We welcome contributions to pulldoc!
- Fork this repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Create a Pull Request
If you discover issues or have ideas for new features, please let us know through Issues.
When reporting bugs, please include the following information:
- Python version
- Command executed
- Error message
- Expected behavior
This project is released under the MIT License.
⭐ If this project was helpful, please give it a star! ⭐
