🐙 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.yaml
and copy the contents from the GitHub workflow template. - Create a new file in your repository named
.autopr/triggers.yaml
and copy the contents from the triggers template. - In your GitHub repository settings, navigate to
Secrets and variables -> Actions
and add your OpenAI API key asOPENAI_API_KEY
. - In your GitHub repository settings, go to
Actions -> General
and 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.