AutoPR automatically writes pull requests in response to issues using ChatGPT.
To get started, see AutoPR-template.
Built with Guardrails.
The action triggers when a collaborator adds an "AutoPR" label to an issue.
- We ask the model what files in the repo are relevant to the issue
- We iteratively show it files, and ask it to write down notes about them
- We ask it to write a pull request title, body, and outline a list of commits (also specifying relevant files)
- For each commit, we ask it to generate a diff given the relevant files
- On new/edited issue, generate code, push a branch, and open a pull request
- Generate multiple commits
- Regenerate triggered from issue comment
- Update from pull request comment
- Update from code review comments
- Explore alternative code generation models
- Running CI and taking corrective action on failure
Warning: This Github Action is currently in development, and in alpha release. If you're interested in using this action, please reach out on Discord.
See AutoPR-template for a guide and example of how to use this action.
Got an idea on how to improve AutoPR? Please see CONTRIBUTING.md for more information.