調整 OpenCode 與 Gitea action 設定 #3

Merged
admin merged 2 commits from develop into master 2026-06-25 10:30:15 +00:00
Member

變更摘要

  • 將 action 介面收斂為只需要 OpenCode 的 base URL、model、provider 設定,Gitea 與 PR 資訊改由 Gitea context 提供。
  • 將 OpenCode 呼叫改為內部服務模式,不再支援帳密或 TLS 驗證開關,並固定略過 TLS 憑證驗證。
  • 將 Gitea API 與 preflight 檢查固定使用 insecure HTTPS agent,移除 Gitea TLS 驗證參數控制。
  • 同步更新 OpenCode/Gitea/preflight 相關測試與套件設定。

影響範圍

  • action.yaml:移除 Gitea/PR/TLS/帳密相關 inputs,改用 gitea.* context 與 OpenCode 專用 inputs。
  • app/config.jsapp/llm.jsapp/preflight.jsapp/gitea.js:收斂 LLM 與 Gitea 連線設定。
  • app/*test.js:調整測試案例以符合固定略過 TLS 與 OpenCode 內部服務的行為。

驗證

  • 已執行 npm ci && npm test,共 231 tests passed。

注意事項

  • Gitea 與 OpenCode 現在都固定略過 TLS 憑證驗證,不再透過 action 參數控制。
  • npm ci 回報既有依賴有 1 moderate、1 high vulnerability,本次未執行 npm audit fix
## 變更摘要 - 將 action 介面收斂為只需要 OpenCode 的 base URL、model、provider 設定,Gitea 與 PR 資訊改由 Gitea context 提供。 - 將 OpenCode 呼叫改為內部服務模式,不再支援帳密或 TLS 驗證開關,並固定略過 TLS 憑證驗證。 - 將 Gitea API 與 preflight 檢查固定使用 insecure HTTPS agent,移除 Gitea TLS 驗證參數控制。 - 同步更新 OpenCode/Gitea/preflight 相關測試與套件設定。 ## 影響範圍 - `action.yaml`:移除 Gitea/PR/TLS/帳密相關 inputs,改用 `gitea.*` context 與 OpenCode 專用 inputs。 - `app/config.js`、`app/llm.js`、`app/preflight.js`、`app/gitea.js`:收斂 LLM 與 Gitea 連線設定。 - `app/*test.js`:調整測試案例以符合固定略過 TLS 與 OpenCode 內部服務的行為。 ## 驗證 - 已執行 `npm ci && npm test`,共 231 tests passed。 ## 注意事項 - Gitea 與 OpenCode 現在都固定略過 TLS 憑證驗證,不再透過 action 參數控制。 - `npm ci` 回報既有依賴有 1 moderate、1 high vulnerability,本次未執行 `npm audit fix`。
jiantw83 added 2 commits 2026-06-25 10:29:16 +00:00
- Removed OpenAI and related dependencies from package.json and package-lock.json.
- Simplified LLM verification logic to focus on OpenCode server.
- Updated tests to reflect changes in LLM provider handling.
- Added CI and CD workflows for automated processes in Gitea.
admin approved these changes 2026-06-25 10:30:12 +00:00
admin merged commit 282dfb6b9f into master 2026-06-25 10:30:15 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: old-docker-actions/ai-code-review#3