Skip to content

Commit

Permalink
feat: add PR AI agent
Browse files Browse the repository at this point in the history
  • Loading branch information
luandro committed Jun 3, 2024
1 parent 05c46f3 commit 94e2b19
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pr-agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PR AI agent
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 }}
github_action_config.model: "gpt-4o"
github_action_config.auto_review: "true"

0 comments on commit 94e2b19

Please sign in to comment.