Skip to content

Commit 1ea2171

Browse files
committed
ci: 添加 PR Agent 工作流配置
1 parent 58f2e79 commit 1ea2171

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/pr-agent.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: PR Agent
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
jobs:
6+
pr_agent_job:
7+
runs-on: ubuntu-latest
8+
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 }}

0 commit comments

Comments
 (0)