From 4f66b06a687f3aebaf2d5b3d67a116a3aa39d5c5 Mon Sep 17 00:00:00 2001 From: Toshihiko SHIMOKAWA Date: Tue, 23 Jun 2026 10:50:53 +0900 Subject: [PATCH] ci: add ai-code-review caller --- .github/workflows/ai-code-review.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ai-code-review.yml diff --git a/.github/workflows/ai-code-review.yml b/.github/workflows/ai-code-review.yml new file mode 100644 index 0000000..22cdf70 --- /dev/null +++ b/.github/workflows/ai-code-review.yml @@ -0,0 +1,27 @@ +# Caller template: AI Code Review (one-shot, inline) — calls the ai-review reusable. +# Distributed by scripts/distribute-workflow.sh as +# .github/workflows/ai-code-review.yml in each target repository. +# The ref / model / language tokens below are substituted at distribution time. +name: AI Code Review + +on: + pull_request: + types: [opened, reopened, ready_for_review, synchronize] # synchronize: re-review on each push. concurrency below cancels superseded runs. Drop synchronize if cost is a concern. + +concurrency: + group: ai-code-review-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + review: + uses: smkwlab/.github/.github/workflows/ai-review.yml@v1 + permissions: + contents: read + pull-requests: write + secrets: + anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + gemini_api_key: ${{ secrets.GEMINI_API_KEY }} + with: + model_code: claude-sonnet-4-6 + review_mode: CODE + language: Japanese