-
Notifications
You must be signed in to change notification settings - Fork 0
ci: add ai-code-review caller #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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. | ||
| name: AI Code Review | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, ready_for_review] # no synchronize: avoid re-reviewing every push | ||
|
|
||
| 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 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚨 [HIGH] [HIGH] 呼び出し先のreusable workflowのrefが |
||
| 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 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ℹ️ [LOW] [LOW] |
||
| review_mode: CODE | ||
| language: Japanese | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
synchronizeイベントが意図的に除外されていますが、これによりPRに追加のコミットがプッシュされた際にレビューが再実行されません。コメントには「every push を避けるため」と記載されていますが、差分のみを対象とした再レビューが必要なユースケースでは問題になる可能性があります。運用方針として意図的であれば問題ありませんが、ドキュメントやREADMEに明記しておくことを推奨します。