-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add ai-code-review / ai-paper-review caller templates #45
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,2 @@ | ||
| MODEL=claude-sonnet-4-6 | ||
| LANGUAGE=Japanese | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| PR への自動コードレビュー(ワンショット・inline)を有効化します。 | ||
|
|
||
| - 動作には org シークレット `ANTHROPIC_API_KEY`(claude モデル時)または `GEMINI_API_KEY`(gemini モデル時)がこのリポジトリで利用可能である必要があります(未配布なら安全にスキップ) | ||
| - draft PR は `ready_for_review` まで、fork PR は secret 不在のため、いずれも安全にスキップします |
| 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 | ||
|
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.
除外の理由はコメントに記載されていますが( |
||
|
|
||
| concurrency: | ||
| group: ai-code-review-${{ github.event.pull_request.number }} | ||
|
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] [MEDIUM] |
||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| review: | ||
| uses: smkwlab/.github/.github/workflows/ai-review.yml@__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: __MODEL__ | ||
| review_mode: CODE | ||
| language: __LANGUAGE__ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| MODEL=claude-sonnet-4-6 | ||
| LANGUAGE=Japanese | ||
| EXCLUDE_PATHS=*.bib,*.sty,*.cls |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| PR への論文自動レビュー(ワンショット・要約コメント)を有効化します。 | ||
|
|
||
| - 動作には org シークレット `ANTHROPIC_API_KEY`(claude モデル時)または `GEMINI_API_KEY`(gemini モデル時)がこのリポジトリで利用可能である必要があります(未配布なら安全にスキップ) | ||
| - 論文全体に言及するフィードバックのため、inline ではなく単一の要約コメントとして投稿します |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Caller template: AI Paper Review (one-shot, summary comment) — calls the ai-review reusable. | ||
| # Distributed by scripts/distribute-workflow.sh as | ||
| # .github/workflows/ai-paper-review.yml in each target repository. | ||
| # The ref / model / language tokens below are substituted at distribution time. | ||
| name: AI Paper Review | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, ready_for_review] # no synchronize: avoid re-reviewing every push | ||
|
|
||
| concurrency: | ||
| group: ai-paper-review-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| review: | ||
| uses: smkwlab/.github/.github/workflows/ai-review.yml@__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: __MODEL__ | ||
| review_mode: ACADEMIC | ||
| single_comment: true | ||
| language: __LANGUAGE__ | ||
| exclude_paths: "__EXCLUDE_PATHS__" |
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.
ℹ️ [LOW] [LOW] モデル名
claude-sonnet-4-6がハードコードされています。将来的にモデルのバージョンが更新された際(例:claude-sonnet-4-7等)、全配布先のファイルを再配布し直す必要があります。ai-paper-review.defaultsも同様です。バージョン部分を分離するか、latestエイリアスが利用可能であればそちらの使用を検討してください。