Skip to content

Commit

Permalink
ワークフロー作成
Browse files Browse the repository at this point in the history
  • Loading branch information
Kubosaka committed Nov 15, 2024
1 parent 7d5d05e commit 8a2f455
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ai-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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:
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.'

0 comments on commit 8a2f455

Please sign in to comment.