ai-review-resolve/develop-20260630-182903
develop
彙整本次 release-cleanup action 的文件化、CI 強化與日誌格式修正(共 5 個 commit),目標分支 develop。
release-cleanup
[階段][等級][時間]: 訊息
stage()
timestamp()
formatLog()
INF
WRN
ERR
參數檢查
取得舊版本
刪除舊版本
separator()
section()
entrypoint.sh
fail
release-tag-version
[階段][等級][時間]
stage
timestamp
formatLog
ci.yaml
[階段]
node --check app/index.js
cd.yaml
yaml.safe_load
sh -n entrypoint.sh
main
- .gitea/workflows/ci.yaml、cd.yaml:新增用途/更新日期區塊與逐行註解(指令邏輯不變) - app/index.js:日誌統一為 [等級][台灣時間]: 訊息(新增 timestamp helper,INF/WRN/ERR;行為、控制流、exit code、stdout/stderr 皆等價) - README.md:重建專案列表三表/功能列表/使用範例,新增日誌格式說明與 timestamp 功能 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- release-tag-version job:以 is_beta: true 標註 beta 版並輸出 version - release-cleanup job:needs 前者,於該 beta 版本上執行 release-cleanup action(dogfooding 自我清理) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- ci.yaml:開頭用途註解改為描述實際的 release-tag-version(beta) + release-cleanup 自我清理管線(邏輯不變) - entrypoint.sh:更新產生時間戳為 2026/06/30 18:19:59 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- 新增 stage() 設定目前階段、formatLog() 共用組裝,log 統一為 [階段][等級][時間]: 訊息 - 階段對應 參數檢查/取得舊版本/刪除舊版本;移除 separator()/section() 的 ==== / ---- 分隔區塊 - 行為、控制流、exit code 不變;fail 仍走 stderr、其餘走 stdout Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- 移除 separator/section、新增 stage/formatLog 條目與錨點 - 更新「日誌輸出格式」章節與各範例為 [階段][等級][時間],同步函式起始行號 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
No dependencies set.
The note is not visible to the blocked user.
變更摘要
彙整本次
release-cleanupaction 的文件化、CI 強化與日誌格式修正(共 5 個 commit),目標分支develop。重點變更
[階段][等級][時間]: 訊息。新增stage()設定目前階段、timestamp()取 Asia/Taipei 時間、formatLog()共用組裝;等級INF(含成功)/WRN/ERR。階段為參數檢查→取得舊版本→刪除舊版本。移除舊的separator()/section()分隔區塊(啟動橫幅改由entrypoint.sh輸出)。對外行為、控制流、exit code 不變;fail走 stderr、其餘走 stdout。release-tag-version(is_beta) →release-cleanup自我清理管線(dogfooding),補齊逐行註解與正確的開頭用途註解。[階段][等級][時間]說明),並更新為新的公開函式面(含stage/timestamp/formatLog)。影響範圍
[階段][等級][時間](判斷邏輯、exit code、輸出串流不變)。ci.yaml觸發內容改變:PR 開啟/同步時會標 beta 版並執行release-cleanup(自我清理)。風險/注意事項
[階段]前綴與等級碼)。ci.yamldogfooding 行為符合預期。驗證
node --check app/index.js、ci.yaml/cd.yaml之yaml.safe_load、sh -n entrypoint.sh皆通過。main、未呼叫 API)確認 log 輸出為[階段][等級][時間]: 訊息,fail走 stderr。