Perry the PR Agent Platypus #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Perry the PR Agent Platypus | |
on: | |
pull_request: | |
pull_request_review_comment: | |
types: [created] | |
issue_comment: | |
types: [created] | |
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_BASE: ${{ secrets.AZURE_OPENAI_BASE_URL }} | |
OPENAI.DEPLOYMENT_ID: ${{ secrets.AZURE_OPENAI_DEPLOYMENT_ID }} | |
OPENAI_API_VERSION: '2023-03-15' | |
AZURE_API_VERSION: '2023-03-15-preview' # Specific version required to address compatibility issues with GPT-4 deployment on Azure. |