Skip to content

Commit 14af09a

Browse files
committed
Add PR Agent workflow
1 parent 38e450d commit 14af09a

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/pr-agent.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
pull_request:
3+
types: [opened, reopened, ready_for_review]
4+
issue_comment:
5+
6+
permissions:
7+
contents: write
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
pr_agent:
13+
uses: ctera/ctera-pr-agent/.github/workflows/pr-agent-reusable.yml@main
14+
with:
15+
api_type: ${{ vars.API_TYPE }}
16+
api_base: ${{ vars.API_BASE }}
17+
api_version: ${{ vars.API_VERSION }}
18+
model: ${{ vars.MODEL }}
19+
secrets:
20+
openai_key: ${{ secrets.AZURE_OPENAI_KEY }}
21+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)