From 8ea5004ace9aada97ffb1beff874300d81a37dae Mon Sep 17 00:00:00 2001 From: ikura-hamu <104292023+ikura-hamu@users.noreply.github.com> Date: Sat, 21 Sep 2024 15:42:54 +0900 Subject: [PATCH] =?UTF-8?q?:wrench:=20AI=E3=81=8C=E3=83=AC=E3=83=93?= =?UTF-8?q?=E3=83=A5=E3=83=BC=E3=81=99=E3=82=8B=E3=82=84=E3=81=A4=E3=81=AE?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ai-review.yaml | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ai-review.yaml diff --git a/.github/workflows/ai-review.yaml b/.github/workflows/ai-review.yaml new file mode 100644 index 00000000..129cf1a1 --- /dev/null +++ b/.github/workflows/ai-review.yaml @@ -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/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."