Migrate automation from OpenCode to goose

This commit is contained in:
lezi-fun committed 2026-08-13 14:24:16 +08:00
1 parent adf6c60a70
commit 8c4e866765
15 files changed
+820 -743

No files matched your search

+8
View File
@@ -40,6 +40,7 @@ jobs:
github.event_name == 'pull_request_review'
uses: ./.github/workflows/review-reusable.yml
secrets:
GOOSE_API_KEY: ${{ secrets.GOOSE_API_KEY }}
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
GH_APP_ID: ${{ secrets.GH_APP_ID }}
GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }}
@@ -58,6 +59,9 @@ jobs:
review_state: ${{ github.event.review.state || '' }}
review_commit_id: ${{ github.event.review.commit_id || '' }}
bot_name: github-actions[bot]
goose_base_url: ${{ vars.GOOSE_BASE_URL || vars.OPENCODE_BASE_URL || 'https://api.openai.com/v1' }}
goose_model: ${{ vars.GOOSE_MODEL || vars.OPENCODE_MODEL || 'gpt-5.4' }}
goose_thinking_effort: ${{ vars.GOOSE_THINKING_EFFORT || vars.OPENCODE_REASONING_EFFORT || 'high' }}
opencode_base_url: ${{ vars.OPENCODE_BASE_URL || 'https://api.openai.com/v1' }}
opencode_model: ${{ vars.OPENCODE_MODEL || 'gpt-5.4' }}
opencode_reasoning_effort: ${{ vars.OPENCODE_REASONING_EFFORT || 'high' }}
@@ -78,6 +82,7 @@ jobs:
if: github.event_name == 'schedule'
uses: ./.github/workflows/review-reusable.yml
secrets:
GOOSE_API_KEY: ${{ secrets.GOOSE_API_KEY }}
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
GH_APP_ID: ${{ secrets.GH_APP_ID }}
GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }}
@@ -90,6 +95,9 @@ jobs:
repository_id: ${{ github.repository_id }}
pull_number: "1"
bot_name: github-actions[bot]
goose_base_url: ${{ vars.GOOSE_BASE_URL || vars.OPENCODE_BASE_URL || 'https://api.openai.com/v1' }}
goose_model: ${{ vars.GOOSE_MODEL || vars.OPENCODE_MODEL || 'gpt-5.4' }}
goose_thinking_effort: ${{ vars.GOOSE_THINKING_EFFORT || vars.OPENCODE_REASONING_EFFORT || 'high' }}
opencode_base_url: ${{ vars.OPENCODE_BASE_URL || 'https://api.openai.com/v1' }}
opencode_model: ${{ vars.OPENCODE_MODEL || 'gpt-5.4' }}
opencode_reasoning_effort: ${{ vars.OPENCODE_REASONING_EFFORT || 'high' }}