Commit Graph

26 Commits

Author SHA1 Message Date
jiantw83 c1f8aa3c72 feat: git 操作 clone 的 repo 2026-05-11 13:54:44 +00:00
jiantw83 8a28d1f1ef test: 修正路徑 2026-05-11 13:50:54 +00:00
jiantw83 d04f4dd2bb feat: 回復使用 spawnSync 執行指令 2026-05-11 13:47:40 +00:00
jiantw83 f5cf5950bd refactor: 改用 execSync 2026-05-11 13:29:31 +00:00
jiantw83 eae73092ad fix: streamline commitAndPush function by removing redundant code and improving error handling 2026-05-11 10:53:59 +00:00
jiantw83 69624a542e fix: refactor commitAndPush function to improve clarity and maintainability 2026-05-11 10:50:16 +00:00
jiantw83 894ece033b fix: Dockerfile 加入 git 安裝驗證,git.js 改回 git binary 2026-05-11 10:34:23 +00:00
jiantw83 fe2a513fbb fix: 修正 findings.json 路徑重複問題 2026-05-11 10:31:43 +00:00
jiantw83 2193bdd4d6 fix: 改回 Gitea API commit,修正 URL encode 與 JSON.stringify 2026-05-11 10:30:07 +00:00
jiantw83 21fb9c1d94 fix: 改回 git commit/push,強制 Dockerfile rebuild 確保 git binary 存在 2026-05-11 10:15:36 +00:00
jiantw83 607c9b82ea debug: log content_len,改用 JSON.stringify 2026-05-11 10:13:57 +00:00
jiantw83 5f77b83a0f debug: commitFile 加上詳細 log 2026-05-11 10:09:16 +00:00
jiantw83 121f66b0b3 debug: git.js 加上參數 log 2026-05-11 10:06:28 +00:00
jiantw83 fc537958ca debug: commit/push 失敗時顯示詳細錯誤 2026-05-11 10:01:40 +00:00
jiantw83 1c321b7ba2 fix: commitAndPush 加上 await 2026-05-11 10:00:08 +00:00
jiantw83 710cd7308e fix: 改用 Gitea API commit findings.json,不依賴 git binary 2026-05-11 09:57:49 +00:00
jiantw83 519e04691d fix: git.js 改用 spawnSync 直接呼叫 git binary(避免 /bin/sh ENOENT) 2026-05-11 09:51:28 +00:00
jiantw83 5ae0549453 feat: 階段五六 - findings commit/push 到來源分支,critical 問題 exit 1 2026-05-11 09:49:07 +00:00
jiantw83 81e38de649 feat: 階段四 - findings 寫入與 comment 依序發布(舊問題→非嚴重→嚴重) 2026-05-11 09:44:45 +00:00
jiantw83 4a67dec32a feat: 階段三 - AI 語意去重,失敗時降級保留所有問題 2026-05-11 09:40:38 +00:00
jiantw83 9a11d25c00 revert: 移除 DeepSeek-R1 特別處理 2026-05-11 08:58:59 +00:00
jiantw83 64b904dd07 fix: 支援不接受 system role 的模型(DeepSeek-R1) 2026-05-11 08:56:48 +00:00
jiantw83 e183e31ce0 fix: 忽略 SSL 憑證驗證(支援自簽憑證的 Ollama/Gitea) 2026-05-11 08:34:04 +00:00
jiantw83 46dd8320d1 feat: 階段二 - Findings 產生與合併
- app/findings.js: 各角色分析 diff、讀取舊 findings、合併去重、等級排序
- app/main.js: 實作 Step2/Step3,log findings 統計
2026-05-11 07:52:21 +00:00
jiantw83 ec1f6c96e7 feat: 階段一 - 改用 Node.js 實作基本流程骨架
- Dockerfile: 改用 node:20-slim
- entrypoint.sh: 執行 app/main.js
- app/package.json: axios + js-yaml + openai
- app/config.js: 環境變數與 LLM 自動偵測(10 種服務)
- app/llm.js: OpenAI-compatible 統一介面
- app/gitea.js: PR diff 取得與 comment 發布
- app/roles.js: 從 prompts/roles/*.yaml 載入角色
- app/main.js: pipeline 骨架,log 每個主要階段
2026-05-11 07:24:47 +00:00
jiantw83 1324f1575d feat: 階段一 - 基本流程串接骨架
- 重寫 action.yaml:支援所有 LLM providers 的 inputs
- 重寫 Dockerfile:python:3.11-slim + git
- 重寫 entrypoint.sh:啟動 app/main.py
- app/config.py:環境變數與 LLM 自動偵測
- app/llm.py:OpenAI-compatible 統一介面
- app/gitea.py:PR diff 取得與 comment 發布
- app/roles.py:從 prompts/roles/*.yaml 載入角色
- app/main.py:pipeline 骨架,log 每個主要階段
- app/prompts/roles/:五個角色定義(Aria/Rex/Zara/Leo/Maya)
2026-05-11 07:23:06 +00:00