Skip to content

Commit

Permalink
Merge pull request #987 from traPtitech/conf/ai-review
Browse files Browse the repository at this point in the history
🔧 AIがレビューするやつの設定追加
  • Loading branch information
ikura-hamu authored Sep 21, 2024
2 parents d8185e6 + 8ea5004 commit 6714b34
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ai-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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/[email protected]
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."

0 comments on commit 6714b34

Please sign in to comment.