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 每個主要階段
This commit is contained in:
+1
-1
@@ -5,4 +5,4 @@ echo "🚀 AI Code Review Action 啟動"
|
||||
echo "Repository: $GITEA_REPOSITORY"
|
||||
echo "PR: #$PR_NUMBER ($PR_HEAD_BRANCH -> $PR_BASE_BRANCH)"
|
||||
|
||||
exec python /action/app/main.py
|
||||
exec node /action/app/main.js
|
||||
|
||||
Reference in New Issue
Block a user