Skip to content

Commit 12b2427

Browse files
committed
ci: 更新 PR Agent 配置,支持评论响应
1 parent 1ea2171 commit 12b2427

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

.github/workflows/pr-agent.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
name: PR Agent
22
on:
33
pull_request:
4-
types: [opened, synchronize]
4+
types: [opened, reopened, ready_for_review]
5+
issue_comment:
56
jobs:
67
pr_agent_job:
8+
if: ${{ github.event.sender.type != 'Bot' }}
79
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
contents: write
14+
name: Run pr agent on every pull request, respond to user comments
815
steps:
9-
- name: PR Agent action step
10-
uses: Codium-ai/pr-agent@main
11-
env:
12-
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
13-
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
14-
CONFIG.MODEL: "gpt-4o-mini"
15-
CONFIG.MODEL_TURBO: "gpt-4o-mini"
16-
OPENAI.API_BASE: ${{ secrets.OPENAI_API_BASE }}
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
- name: PR Agent action step
17+
id: pragent
18+
uses: qodo-ai/pr-agent@main
19+
env:
20+
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
21+
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
22+
CONFIG.MODEL: "gpt-4o-mini"
23+
CONFIG.MODEL_TURBO: "gpt-4o-mini"
24+
OPENAI.API_BASE: ${{ secrets.OPENAI_API_BASE }}
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)