Feature/util #16
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| # 実際に存在するリポジトリに修正 | |
| uses: sshnaidm/gemini-code-review-action@v2 | |
| with: | |
| # このActionは「gemini-key」という名前の引数を使います | |
| gemini-key: ${{ secrets.GEMINI_API_KEY }} | |
| model: 'gemini-2.5-flash' | |
| prompt: | | |
| あなたは極めて優秀なシニアエンジニアです。 | |
| 提出されたコードの差分(Diff)を分析し、以下の観点からレビューしてコメントを日本語で残してください。 | |
| 1. バグの引き金になりそうな潜在的な問題(メモリ効率、未定義動作など) | |
| 2. パフォーマンスや計算効率の改善点 | |
| 3. コードの可読性やメンテナンス性 |