generated from sapphi-red/vite-boilerplate-plus
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 1.13 KB
/
pr-agent.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: PR Agent
on:
pull_request:
types:
- ready_for_review
- opened
issue_comment:
types:
- created
- edited
permissions:
issues: write
pull-requests: write
contents: write
jobs:
pr_agent_job:
if: ${{github.event.sender.type != 'Bot' && github.event.pull_request.draft == false}}
runs-on: ubuntu-latest
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@v0.24
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTION.AUTO_REVIEW: 'true'
GITHUB_ACTION.AUTO_DESCRIBE: 'true'
GITHUB_ACTION.AUTO_IMPROVE: 'true'
PR_REVIEWER.EXTRA_INSTRUCTIONS: '必ず日本語で回答してください'
PR_DESCRIPTION.PUBLISH_LABELS: 'false'
PR_DESCRIPTION.ADD_ORIGINAL_USER_DESCRIPTION: 'true'
PR_DESCRIPTION.EXTRA_INSTRUCTIONS: 'Please use Japanese in descriptions.'
PR_CODE_SUGGESTIONS.EXTRA_INSTRUCTIONS: 'Please use Japanese in descriptions.'