chore(Gitea workflows): 新增 CI 與 AI code review 流程
CI / 計算版本號 (pull_request) Successful in 2s
AI / Code Review (pull_request) Failing after 44s
CI / 品質檢查 (pull_request) Successful in 1m3s

This commit is contained in:
2026-06-24 10:25:44 +00:00
parent a8fd459117
commit a6cce49395
2 changed files with 55 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
name: AI
on:
pull_request:
branches-ignore:
- master
types: [opened, synchronize]
jobs:
code-review:
name: Code Review
runs-on: ubuntu
steps:
- name: AI Code Review
uses: https://gitea.jsc.idv.tw/actions/code-review@${{ vars.ACTION_CODE_REVIEW_VERSION }}
with:
GITEA_TOKEN: ${{ secrets.RUNNER_TOKEN }}
GITEA_COMMENT_TOKEN: ${{ secrets.GITEA_TOKEN }}
OPENCODE_BASE_URL: ${{ vars.OPENCODE_BASE_URL }}
OPENCODE_PROVIDER: ${{ vars.OPENCODE_PROVIDER }}
OPENCODE_MODEL: ${{ vars.GEMINI_MODEL }}
permissions:
contents: write
pull-requests: write
issues: write