Skip to content

Commit 5d8ab40

Browse files
authored
Create pr_agent.yml
1 parent 690b8e3 commit 5d8ab40

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/pr_agent.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
pull_request:
3+
types: [opened, reopened, ready_for_review]
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
pr_agent_job:
9+
runs-on: ubuntu-latest
10+
if: ${{ github.event.comment.body == '/review' || github.event.comment.body == '/describe' || github.event.comment.body == '/improve' || github.event.comment.body == '/ask' || github.event.comment.body == '/update_changelog' || github.event.sender.type != 'Bot' && github.event.pull_request }}
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
contents: write
15+
name: Run PR Agent with Gemini
16+
steps:
17+
- name: PR Agent action
18+
uses: qodo-ai/pr-agent@main
19+
env:
20+
GOOGLE_AI_STUDIO_GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
21+
CONFIG_MODEL: "gemini-2.5-pro-preview-05-6"
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)