ci: add ai-code-review caller#131
Merged
Merged
Conversation
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | ||
| gemini_api_key: ${{ secrets.GEMINI_API_KEY }} | ||
| with: | ||
| model_code: claude-sonnet-4-6 |
There was a problem hiding this comment.
🚨 [HIGH] モデルコード claude-sonnet-4-6 は存在しないモデル名の可能性があります。2025年時点での正式なモデル識別子は claude-sonnet-4-5 や claude-opus-4 などです。claude-sonnet-4-6 というモデルが実際に存在するか確認してください。誤ったモデル名を指定するとAPIエラーが発生し、レビューが常に失敗します。
| @@ -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. | |||
There was a problem hiding this comment.
ℹ️ [LOW] コメント冒頭(1〜4行目)に「Distributed by scripts/distribute-workflow.sh」とあり、このファイルが配布スクリプトによって生成されるテンプレートであることが示されています。しかし、このリポジトリに scripts/distribute-workflow.sh が存在するか、またはこのファイルが手動で配置されたものかが不明です。テンプレートとして管理するのであれば、実際の配布元リポジトリとの同期方法を明確にしておくことを推奨します。
|
|
||
| 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. |
There was a problem hiding this comment.
ℹ️ [LOW] 9行目のインラインコメントが非常に長く、YAMLの可読性を損なっています。コメントは別行に分けるか、ワークフローの説明として README や上部のブロックコメントにまとめることを検討してください。
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the shared
ai-code-reviewworkflow as a caller ofsmkwlab/.github/.github/workflows/ai-code-review.yml@v1.PR への自動コードレビュー(ワンショット・inline)を有効化します。
ANTHROPIC_API_KEY(claude モデル時)またはGEMINI_API_KEY(gemini モデル時)がこのリポジトリで利用可能である必要があります(未配布なら安全にスキップ)ready_for_reviewまで、fork PR は secret 不在のため、いずれも安全にスキップします