Automated pull requests reviewing and issues triaging with ChatGPT.
Create an OpenAI API key here, and then set the key as an action secret in your repository named OPENAI_API_KEY
.
Finally, create a file named .github/workflows/chatgpt-review.yml
with the following contents:
name: ChatGPT Review
on: [pull_request]
jobs:
chatgpt-review:
name: ChatGPT Review
runs-on: ubuntu-latest
steps:
- uses: feiskyer/ChatGPT-Reviewer@v0.1
name: ChatGPT Review
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}