pr-filler
v1.0.12
Published
A tool that automatically fills out GitHub pull request descriptions using AI by analyzing code diffs.
Readme

pr-filler
A tool that automatically fills out GitHub pull request descriptions using AI by analyzing code diffs.
✨ Demo

Installation
sudo npm install -g pr-fillerPrerequisites
Set the following environment variables:
export GITHUB_ACCESS_TOKEN="your_github_token"
export OPENAI_API_KEY="your_openai_api_key"Usage
# Interactive mode
pr-filler
# With PR URL as argument
pr-filler https://github.com/owner/repo/pull/123
# With AI model specification
pr-filler --url https://github.com/owner/repo/pull/123 --model gpt-4o
# Using short flags
pr-filler -u https://github.com/owner/repo/pull/123 -m gpt-3.5-turboCommand-line flags
--url, -u: Specify the GitHub pull request URL--model, -m: Specify the OpenAI model to use (default: gpt-4.1)
How it works
- Fetches the existing PR template and code diff from GitHub
- Sends both to the specified OpenAI model (default: gpt-4.1) to generate a detailed description
- Updates the PR body on GitHub with the AI-generated content
✍️ Author
👤 theapache64
- Twitter: @theapache64
- Email: [email protected]
Feel free to ping me 😉
🤝 Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Open an issue first to discuss what you would like to change.
- Fork the Project
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a pull request
Please make sure to update tests as appropriate.
❤ Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2025 - theapache64
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.This README was generated by readgen ❤
