From 2f11631ec5f1dfd4a91570686434bbda3d1d8a56 Mon Sep 17 00:00:00 2001 From: ShunjiOtonari Date: Thu, 30 Jul 2026 10:24:08 +0900 Subject: [PATCH] Remove unnecessary text from review prompt --- .github/workflows/gemini-review.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/gemini-review.yml diff --git a/.github/workflows/gemini-review.yml b/.github/workflows/gemini-review.yml new file mode 100644 index 0000000..59069cf --- /dev/null +++ b/.github/workflows/gemini-review.yml @@ -0,0 +1,29 @@ +name: Gemini Code Reviewer + +on: + pull_request: + types: [opened, synchronize] + +permissions: + contents: read + pull-requests: write + +jobs: + review: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Run Gemini Reviewer + continue-on-error: true + uses: sshnaidm/gemini-code-review-action@v2 + with: + gemini-key: ${{ secrets.GEMINI_API_KEY }} + model: 'gemini-2.5-flash' + prompt: | + あなたは極めて優秀なシニアエンジニアです。 + 提出されたコードの差分(Diff)を分析し、以下の観点からレビューしてコメントを日本語で残してください。 + 1. バグの引き金になりそうな潜在的な問題 + 2. パフォーマンスや計算効率の改善点 + 3. コードの可読性やメンテナンス性