Skip to content

OpenAI PR Agent Setup #10

OpenAI PR Agent Setup

OpenAI PR Agent Setup #10

Workflow file for this run

name: Perry the PR Agent Platypus
on:
pull_request:
issue_comment:
jobs:
pr_agent_job:
if: ${{ github.event.sender.type != 'Bot' }}
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
contents: write
name: Run pr agent on every pull request, respond to user comments
steps:
- name: PR Agent action step
id: pragent
uses: Codium-ai/pr-agent@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI.KEY: ${{ secrets.AZURE_OPENAI_KEY }}
OPENAI.API_TYPE: "azure"
OPENAI.API_VERSION: "2023-03-15"
OPENAI.API_BASE: "https://${{ vars.AZURE_DEPLOYMENT_ID }}.openai.azure.com"
OPENAI.DEPLOYMENT_ID: ${{ vars.AZURE_DEPLOYMENT_ID }}
AZURE_API_VERSION: "2023-03-15"
GITHUB_ACTION_CONFIG.AUTO_REVIEW: "true" # enable\disable auto review
GITHUB_ACTION_CONFIG.AUTO_DESCRIBE: "true" # enable\disable auto describe
GITHUB_ACTION_CONFIG.AUTO_IMPROVE: "true" # enable\disable auto improve