🐙 GitHub
This guide will walk you through setting up and using AutoPR as a GitHub Action.
Prerequisites
You need your own OpenAI API key.
Setup
Follow these steps to set up AutoPR in your GitHub repository:
- Create a new file in your repository named
.github/workflows/autopr.yamland copy the contents from the GitHub workflow template. - Create a new file in your repository named
.autopr/triggers.yamland copy the contents from the triggers template. - In your GitHub repository settings, navigate to
Secrets and variables -> Actionsand add your OpenAI API key asOPENAI_API_KEY. - In your GitHub repository settings, go to
Actions -> Generaland scroll down toWorkflow permissions. EnableAllow GitHub Actions to create and approve pull requests.
That's it! Check out the Configuring guide to see how to customize AutoPR for your repository.