acheong08 / AutoPR

Fix issues with AI-generated pull requests, powered by GPT-4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ€–πŸ‘¨β€πŸ’» AutoPR Github Action πŸš€

Discord

AutoPR automatically writes pull requests in response to issues using ChatGPT.
To get started, see AutoPR-template.
Built with Guardrails.

πŸ’ͺ How does it work?

The action triggers when a collaborator adds an "AutoPR" label to an issue.

  1. We ask the model what files in the repo are relevant to the issue
  2. We iteratively show it files, and ask it to write down notes about them
  3. We ask it to write a pull request title, body, and outline a list of commits (also specifying relevant files)
  4. For each commit, we ask it to generate a diff given the relevant files

πŸ“ Roadmap

  • 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

πŸ”¨ Usage

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.

πŸ“ Contributing

Got an idea on how to improve AutoPR? Please see CONTRIBUTING.md for more information.

About

Fix issues with AI-generated pull requests, powered by GPT-4

License:MIT License


Languages

Language:Python 99.4%Language:Dockerfile 0.4%Language:Shell 0.1%