Skip to content

Instantly share code, notes, and snippets.

@gyliu513
Created June 27, 2024 16:50
Show Gist options
  • Save gyliu513/0e91167fb29439c0a0e40edf1b697ac4 to your computer and use it in GitHub Desktop.
Save gyliu513/0e91167fb29439c0a0e40edf1b697ac4 to your computer and use it in GitHub Desktop.
pr_agent.yml
on:
pull_request:
types: [opened, reopened, ready_for_review]
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:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment