generated from jphacks/JP_sample
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.29 KB
/
ai-review.yml
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
37
38
39
# This workflow enables developers to call PR-Agents `/[actions]` in PR's comments and upon PR creation.
# Learn more at https://www.codium.ai/pr-agent/
# This is v0.2 of this workflow file
name: PR-Agent
on:
pull_request:
types: [opened]
issue_comment:
types: [created]
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
pr_agent_job:
runs-on: ubuntu-latest
name: Run pr agent on every pull request
if: ${{ github.event.sender.type != 'Bot' }}
steps:
- name: PR Agent action step
id: pragent
uses: Codium-ai/pr-agent@main
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
# OPENAI_ORG: ${{ secrets.OPENAI_ORG }} # optional
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# PINECONE.API_KEY: ${{ secrets.PINECONE_API_KEY }}
# PINECONE.ENVIRONMENT: ${{ secrets.PINECONE_ENVIRONMENT }}
GITHUB_ACTION_CONFIG.AUTO_DESCRIBE: true
GITHUB_ACTION_CONFIG.AUTO_REVIEW: true
GITHUB_ACTION_CONFIG.AUTO_IMPROVE: true
PR_DESCRIPTION.EXTRA_INSTRUCTIONS: 'Please use Japanese.'
PR_REVIEWER.EXTRA_INSTRUCTIONS: 'Please use Japanese.'
PR_CODE_SUGGESTIONS.EXTRA_INSTRUCTIONS: 'Please use Japanese.'
CONFIG.MODEL: gpt-4o-mini