Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/ai-code-review.yml
Original file line number Diff line number Diff line change
@@ -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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ [LOW] コメント冒頭に「Caller template」「Distributed by scripts/distribute-workflow.sh」とあり、このファイルが配布スクリプトによって生成されるテンプレートであることが示されています。しかし実際にリポジトリに配置されているこのファイルは既に配布済みの成果物であるため、テンプレート用のコメント(1〜4行目)はそのまま残すと混乱を招く可能性があります。配布後のファイルにはテンプレートメタ情報を残さないか、明確に「このファイルは自動生成されました」と書き換えることを検討してください。

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 [HIGH] モデルコード claude-sonnet-4-6 は存在しないモデル名の可能性があります。2025年時点での正式なモデル識別子は claude-sonnet-4-5claude-opus-4 などです。claude-sonnet-4-6 というモデルが実際に利用可能か確認してください。誤ったモデル名を指定するとワークフローが実行時エラーになります。

review_mode: CODE
language: Japanese
Loading