新增 token 參數
CI / AI Code Review (pull_request) Failing after 5m51s

This commit is contained in:
Jeffery
2026-06-26 15:00:17 +08:00
parent f267d9e06b
commit b8a15883ab
2 changed files with 7 additions and 4 deletions
+6 -3
View File
@@ -2,9 +2,12 @@ name: 'AI Code Review'
description: 'AI 程式碼審查'
author: 'Jeffery'
inputs:
comment_token:
token:
description: ''
required: true
comment_token:
description: ''
required: false
opencode_base_url:
description: 'OpenCode server Base URL'
required: false
@@ -20,8 +23,8 @@ runs:
env:
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_TOKEN: ${{ gitea.token }}
GITEA_COMMENT_TOKEN: ${{ inputs.comment_token }}
GITEA_TOKEN: ${{ inputs.token || gitea.token }}
GITEA_COMMENT_TOKEN: ${{ inputs.comment_token || inputs.token || gitea.token }}
PR_NUMBER: ${{ gitea.event.pull_request.number }}
PR_HEAD_SHA: ${{ gitea.event.pull_request.head.sha }}
PR_HEAD_BRANCH: ${{ gitea.event.pull_request.head.ref }}