|
|
@@ -54,6 +54,7 @@ jobs:
|
|
|
|
- name: AI Code Review
|
|
|
|
- name: AI Code Review
|
|
|
|
uses: https://gitea.jsc.idv.tw/actions/code-review@${{ vars.ACTION_CODE_REVIEW_VERSION }}
|
|
|
|
uses: https://gitea.jsc.idv.tw/actions/code-review@${{ vars.ACTION_CODE_REVIEW_VERSION }}
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
|
|
|
|
GITEA_TOKEN: ${{ secrets.RUNNER_TOKEN }}
|
|
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} # 支援逗號分隔多個 Key
|
|
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} # 支援逗號分隔多個 Key
|
|
|
|
OPENAI_BASE_URL: https://api.openai.com/v1
|
|
|
|
OPENAI_BASE_URL: https://api.openai.com/v1
|
|
|
|
OPENAI_MODEL: ${{ vars.OPENAI_MODEL }}
|
|
|
|
OPENAI_MODEL: ${{ vars.OPENAI_MODEL }}
|
|
|
@@ -82,6 +83,7 @@ jobs:
|
|
|
|
- name: AI Code Review
|
|
|
|
- name: AI Code Review
|
|
|
|
uses: https://gitea.jsc.idv.tw/actions/code-review@${{ vars.ACTION_CODE_REVIEW_VERSION }}
|
|
|
|
uses: https://gitea.jsc.idv.tw/actions/code-review@${{ vars.ACTION_CODE_REVIEW_VERSION }}
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
|
|
|
|
GITEA_TOKEN: ${{ secrets.RUNNER_TOKEN }}
|
|
|
|
OPENAI_API_KEY: ${{ secrets.OPENROUTER_API_KEY }},${{ secrets.OPENROUTER_API_KEY_1 }}
|
|
|
|
OPENAI_API_KEY: ${{ secrets.OPENROUTER_API_KEY }},${{ secrets.OPENROUTER_API_KEY_1 }}
|
|
|
|
OPENAI_BASE_URL: https://openrouter.ai/api/v1
|
|
|
|
OPENAI_BASE_URL: https://openrouter.ai/api/v1
|
|
|
|
OPENAI_MODEL: ${{ vars.OPENROUTER_MODEL }}
|
|
|
|
OPENAI_MODEL: ${{ vars.OPENROUTER_MODEL }}
|
|
|
@@ -110,6 +112,7 @@ jobs:
|
|
|
|
- name: AI Code Review
|
|
|
|
- name: AI Code Review
|
|
|
|
uses: https://gitea.jsc.idv.tw/actions/code-review@${{ vars.ACTION_CODE_REVIEW_VERSION }}
|
|
|
|
uses: https://gitea.jsc.idv.tw/actions/code-review@${{ vars.ACTION_CODE_REVIEW_VERSION }}
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
|
|
|
|
GITEA_TOKEN: ${{ secrets.RUNNER_TOKEN }}
|
|
|
|
CLAUDE_API_KEY: ${{ secrets.CLAUDE_API_KEY }} # 支援逗號分隔多個 Key
|
|
|
|
CLAUDE_API_KEY: ${{ secrets.CLAUDE_API_KEY }} # 支援逗號分隔多個 Key
|
|
|
|
CLAUDE_BASE_URL: https://api.anthropic.com/v1
|
|
|
|
CLAUDE_BASE_URL: https://api.anthropic.com/v1
|
|
|
|
permissions:
|
|
|
|
permissions:
|
|
|
@@ -137,6 +140,7 @@ jobs:
|
|
|
|
- name: AI Code Review
|
|
|
|
- name: AI Code Review
|
|
|
|
uses: https://gitea.jsc.idv.tw/actions/code-review@${{ vars.ACTION_CODE_REVIEW_VERSION }}
|
|
|
|
uses: https://gitea.jsc.idv.tw/actions/code-review@${{ vars.ACTION_CODE_REVIEW_VERSION }}
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
|
|
|
|
GITEA_TOKEN: ${{ secrets.RUNNER_TOKEN }}
|
|
|
|
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }},${{ secrets.GEMINI_API_KEY_1 }},${{ secrets.GEMINI_API_KEY_2 }},${{ secrets.GEMINI_API_KEY_3 }},${{ secrets.GEMINI_API_KEY_4 }},${{ secrets.GEMINI_API_KEY_5 }},${{ secrets.GEMINI_API_KEY_6 }},${{ secrets.GEMINI_API_KEY_7 }},${{ secrets.GEMINI_API_KEY_8 }},${{ secrets.GEMINI_API_KEY_9 }},${{ secrets.GEMINI_API_KEY_10 }},${{ secrets.GEMINI_API_KEY_11 }},${{ secrets.GEMINI_API_KEY_12 }},${{ secrets.GEMINI_API_KEY_13 }},${{ secrets.GEMINI_API_KEY_14 }},${{ secrets.GEMINI_API_KEY_15 }},${{ secrets.GEMINI_API_KEY_16 }},${{ secrets.GEMINI_API_KEY_17 }},${{ secrets.GEMINI_API_KEY_18 }},${{ secrets.GEMINI_API_KEY_19 }}
|
|
|
|
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }},${{ secrets.GEMINI_API_KEY_1 }},${{ secrets.GEMINI_API_KEY_2 }},${{ secrets.GEMINI_API_KEY_3 }},${{ secrets.GEMINI_API_KEY_4 }},${{ secrets.GEMINI_API_KEY_5 }},${{ secrets.GEMINI_API_KEY_6 }},${{ secrets.GEMINI_API_KEY_7 }},${{ secrets.GEMINI_API_KEY_8 }},${{ secrets.GEMINI_API_KEY_9 }},${{ secrets.GEMINI_API_KEY_10 }},${{ secrets.GEMINI_API_KEY_11 }},${{ secrets.GEMINI_API_KEY_12 }},${{ secrets.GEMINI_API_KEY_13 }},${{ secrets.GEMINI_API_KEY_14 }},${{ secrets.GEMINI_API_KEY_15 }},${{ secrets.GEMINI_API_KEY_16 }},${{ secrets.GEMINI_API_KEY_17 }},${{ secrets.GEMINI_API_KEY_18 }},${{ secrets.GEMINI_API_KEY_19 }}
|
|
|
|
GEMINI_BASE_URL: https://generativelanguage.googleapis.com/v1beta
|
|
|
|
GEMINI_BASE_URL: https://generativelanguage.googleapis.com/v1beta
|
|
|
|
GEMINI_MODEL: ${{ vars.GEMINI_MODEL }}
|
|
|
|
GEMINI_MODEL: ${{ vars.GEMINI_MODEL }}
|
|
|
@@ -165,6 +169,7 @@ jobs:
|
|
|
|
- name: AI Code Review
|
|
|
|
- name: AI Code Review
|
|
|
|
uses: https://gitea.jsc.idv.tw/actions/code-review@${{ vars.ACTION_CODE_REVIEW_VERSION }}
|
|
|
|
uses: https://gitea.jsc.idv.tw/actions/code-review@${{ vars.ACTION_CODE_REVIEW_VERSION }}
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
|
|
|
|
GITEA_TOKEN: ${{ secrets.RUNNER_TOKEN }}
|
|
|
|
AMAZONQ_API_KEY: ${{ secrets.AMAZONQ_API_KEY }} # 支援逗號分隔多個 Key
|
|
|
|
AMAZONQ_API_KEY: ${{ secrets.AMAZONQ_API_KEY }} # 支援逗號分隔多個 Key
|
|
|
|
AMAZONQ_BASE_URL: https://q.api.aws
|
|
|
|
AMAZONQ_BASE_URL: https://q.api.aws
|
|
|
|
permissions:
|
|
|
|
permissions:
|
|
|
@@ -191,10 +196,11 @@ jobs:
|
|
|
|
runs-on: ubuntu
|
|
|
|
runs-on: ubuntu
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: AI Code Review
|
|
|
|
- name: AI Code Review
|
|
|
|
uses: https://gitea.jsc.idv.tw/actions/code-review@${{ vars.ACTION_CODE_REVIEW_VERSION }}
|
|
|
|
uses: https://gitea.jsc.idv.tw/actions/code-review@${{ vars.ACTION_CODE_REVIEW_VERSION }}
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
OLLAMA_BASE_URL: https://ollama.jsc.idv.me/v1
|
|
|
|
GITEA_TOKEN: ${{ secrets.RUNNER_TOKEN }}
|
|
|
|
OLLAMA_MODEL: ${{ vars.OLLAMA_MODEL }}
|
|
|
|
OLLAMA_BASE_URL: https://ollama.jsc.idv.me/v1
|
|
|
|
|
|
|
|
OLLAMA_MODEL: ${{ vars.OLLAMA_MODEL }}
|
|
|
|
permissions:
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
contents: write
|
|
|
|
pull-requests: write
|
|
|
|
pull-requests: write
|
|
|
|