Commit Graph

18 Commits

Author SHA1 Message Date
jiantw83 3f3ead0f08 test: cover review edge cases and repair paths 2026-05-13 06:27:43 +00:00
jiantw83 cc6345c32e refactor: update commitAndPush function to accept repoDir parameter and adjust related tests 2026-05-13 01:46:27 +00:00
jiantw83 6db660f872 refactor: update TODO stages to reflect current status and improve clarity; modify diff filtering logic in gitea.js and main.js 2026-05-13 01:12:20 +00:00
jiantw83 6c6680fd3e feat: enhance JSON format validation with backup and reset mechanism on error 2026-05-13 01:06:11 +00:00
jiantw83 49a02ebb6b feat: add JSON format validation for findings and exclusions after processing 2026-05-13 01:02:33 +00:00
jiantw83 fd854649db refactor: improve comment formatting and streamline AI handling in findings processing 2026-05-13 00:49:23 +00:00
jiantw83 c751a53d43 feat: enhance exclusions.json with new suggestions and refactor roles.js for dynamic path resolution 2026-05-12 09:57:33 +00:00
jiantw83 5ef9ab81ff fix: enhance suggestions in exclusions.json for clarity and accuracy; update filterFalsePositivesWithAI to accept exclusions 2026-05-12 04:20:35 +00:00
jiantw83 0825f8ebbe refactor: rename Step4 to AI 排除問題過濾 2026-05-12 02:30:14 +00:00
jiantw83 a0e69b4e82 feat: add AI false positive filtering in Step4 2026-05-12 02:30:14 +00:00
jiantw83 80f56b74e5 fix: clone repo before Step3/4 to read findings and exclusions from head branch 2026-05-12 02:30:14 +00:00
jiantw83 bb7fa425db fix: align flow with README, add Step4 exclusions filter, fix step numbers 2026-05-12 02:30:14 +00:00
jiantw83 1c321b7ba2 fix: commitAndPush 加上 await 2026-05-11 10:00:08 +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 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