feat: AI Pull Request action — opencode 自動產生 PR 並通過 AI review #2
@@ -5,6 +5,17 @@ on:
|
|||||||
- master
|
- master
|
||||||
types: [opened, synchronize]
|
types: [opened, synchronize]
|
||||||
jobs:
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Unit Test
|
||||||
|
runs-on: ubuntu
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
- name: 執行單元測試
|
||||||
|
run: node --test
|
||||||
|
working-directory: app
|
||||||
ai-code-review:
|
ai-code-review:
|
||||||
name: AI Code Review
|
name: AI Code Review
|
||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
@@ -16,4 +27,4 @@ jobs:
|
|||||||
- name: AI 程式碼審查 by OpenCode
|
- name: AI 程式碼審查 by OpenCode
|
||||||
uses: https://gitea.jsc.idv.tw/composite-actions/opencode-code-review@${{ vars.ACTION_OPENCODE_CODE_REVIEW_VERSION }}
|
uses: https://gitea.jsc.idv.tw/composite-actions/opencode-code-review@${{ vars.ACTION_OPENCODE_CODE_REVIEW_VERSION }}
|
||||||
with:
|
with:
|
||||||
comment_token: ${{ secrets.COMMENT_TOKEN }}
|
token: ${{ secrets.TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user