Jeffery
ead1afc79a
feat(logger): 以階段前綴取代 section 區塊並新增 forStage 子記錄器
2026-06-30 18:22:27 +08:00
Jeffery
7de0900d5f
docs(calculate-version): 重建 README、修正 compareVersionArrays JSDoc 並更新指令檔註解日期
CI / Calculate Version (pull_request) Successful in 27s
CI / Release Tag Version (pull_request) Successful in 4s
v0.0.6-beta.2
2026-06-30 17:43:09 +08:00
Jeffery
7f3ddf62e3
docs(calculate-version): 重建 README 並補齊 ci.yaml/action.yaml 指令檔註解與 logger JSDoc
CI / Release Tag Version (pull_request) Successful in 2m7s
CI / Calculate Version (pull_request) Successful in 31s
2026-06-30 16:49:31 +08:00
Jeffery
0c3360fd8c
chore(ci workflow): 將 CI 改為釋出標版並計算版本號流程
2026-06-30 16:28:10 +08:00
Jeffery
ffd176a69f
test(version): 補上 nextVersion 的單元測試
2026-06-30 16:16:34 +08:00
Jeffery
11e2808da6
refactor(版本計算流程): 將 main 拆成參數檢查、取得舊版本、計算版本號三階段並抽出 nextVersion
2026-06-30 16:16:31 +08:00
Jeffery
1ba092bbf4
chore(ai-review 狀態): 清空已解決的 findings.json
2026-06-30 12:42:11 +08:00
Jeffery
04e1ada80a
test(calculate-version): 整併重複測試至 app/test 並新增 logger 測試
2026-06-30 12:42:11 +08:00
Jeffery
7954fda311
docs(calculate-version): 補齊 function JSDoc 與指令檔逐行註解並重建 README
2026-06-30 12:42:11 +08:00
Jeffery
fe299cac64
refactor(Dockerfile): 改為最新 node 多階段建置以縮小最終映像
2026-06-30 12:42:11 +08:00
Jeffery
2e5c46b893
feat(啟動橫幅與 log 格式): 啟動輸出 Action 資訊橫幅並統一 log 訊息為 [等級][時間] 格式
2026-06-30 12:42:11 +08:00
Jeffery
b14b676d0c
fix(設定與 release 取得): 補 GITEA_REPOSITORY 格式驗證並讓 JSON 解析錯誤帶回傳內容
2026-06-30 12:42:11 +08:00
admin
e23f222ffa
更新 action.yaml
2026-06-30 02:51:50 +00:00
admin
8846b6d386
Merge pull request 'refactor: calculate-version 由 bash 改寫為 Node.js' ( #5 ) from ai-review-resolve/develop-20260626-104052 into develop
...
Reviewed-on: docker-actions/calculate-version#5
2026-06-26 03:00:32 +00:00
AI Review Bot
1f878199da
chore: update ai-review findings [ai-review-bot][success]
2026-06-26 03:00:16 +00:00
Jeffery and Claude Opus 4.8
6f95a3fbe6
chore(ai-review 狀態): 更新 findings.json 與 exclusions.json
...
CI / AI Code Review (pull_request) Successful in 38s
已解決 1 條(warning:補 JSON 解析失敗測試),其餘 5 條判定為誤報寫入 exclusions(critical x2 重複項、warning x2、info x1),findings 清空。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-26 10:59:32 +08:00
Jeffery and Claude Opus 4.8
e54805b241
test(calculate-version): 補上 release JSON 解析失敗路徑測試
...
新增 fetchReleases 收到無法解析 JSON 時拋出「回傳資料無法解析」的測試案例。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-26 10:59:32 +08:00
AI Review Bot
66d2c4b35f
chore: update ai-review findings [ai-review-bot][failure]
2026-06-26 02:53:10 +00:00
Jeffery and Claude Opus 4.8
43601350b0
chore(ai-review 狀態): 更新 findings.json 與 exclusions.json
...
CI / AI Code Review (pull_request) Failing after 44s
已解決 6 條(critical x4、warning x1、info x1),4 條判定為誤報寫入 exclusions(warning x3、info x1),findings 清空。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-26 10:52:19 +08:00
Jeffery and Claude Opus 4.8
fb760004fd
docs(calculate-version): 更新 README 對齊錯誤處理重構
...
logger.fail 改為 logger.error、新增 index.main 公開函式說明,並更新對應行號與使用範例。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-26 10:52:19 +08:00
Jeffery and Claude Opus 4.8
3c8704d1a3
test(calculate-version): 補上 GITEA_SERVER_URL 驗證與 main 失敗路徑測試
...
新增 config 的 URL 格式/協定驗證測試,以及以相依注入覆蓋 main 成功與 loadConfig/fetchReleases 失敗路徑的整合測試。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-26 10:52:19 +08:00
Jeffery and Claude Opus 4.8
fdf33b41d8
fix(calculate-version): 修復 AI 審查的安全與健全性問題
...
- Dockerfile 移除 --no-check-certificate,恢復 TLS 憑證檢查以防中間人攻擊
- config 對 GITEA_SERVER_URL 加入 http/https URL 格式驗證
- logger.fail 改為 logger.error(僅輸出不終止行程),退出移至 index 頂層處理
- index.main 改用相依注入並於頂層攔截錯誤後 exit 1,避免 library 內呼叫 process.exit
- releases 將 response.text() 包入 try-catch 並附帶頁碼
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-26 10:52:19 +08:00
AI Review Bot
f71d2cc35c
chore: update ai-review findings [ai-review-bot][failure]
2026-06-26 02:43:30 +00:00
Jeffery and Claude Opus 4.8
6f9df6743c
docs(calculate-version): 新增 README 並補上 entrypoint/CI/CD 註解
...
CI / AI Code Review (pull_request) Failing after 57s
依 doc-funcs 產生 README(專案列表、功能列表、使用範例),並為 CI/CD workflow 補上逐行註解。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-26 10:41:34 +08:00
Jeffery and Claude Opus 4.8
923c94d198
test(calculate-version): 新增 version/config/releases 單元測試
...
以 node:test 為 app/ 模組補上 24 個單元測試,涵蓋版本計算、設定載入與 release 分頁抓取。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-26 10:41:34 +08:00
Jeffery and Claude Opus 4.8
bd6b6017ab
refactor(calculate-version): 將版本計算邏輯由 bash 改寫為 Node.js 並依功能分檔
...
保留 entrypoint.sh 作為容器進入點,改為啟動 app/ 下的 Node.js 程式;
依功能拆分為 logger/config/version/releases/output/index,並更新 Dockerfile 改用 node:lts-alpine。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-26 10:41:34 +08:00
admin
4983a72524
更新 .gitea/workflows/ci.yaml
2026-06-25 16:32:25 +00:00
jiantw83
762dfb5cf7
更新 .gitea/workflows/cd.yaml
2026-06-25 14:10:51 +00:00
jiantw83
c30b09ac4c
更新 .gitea/workflows/ci.yaml
2026-06-25 14:09:11 +00:00
jiantw83
827065bd14
更新 .gitea/workflows/ci.yaml
2026-06-25 14:04:31 +00:00
jiantw83
9d89de1558
更新 .gitea/workflows/cd.yaml
2026-06-25 14:00:10 +00:00
admin
10268a9c39
更新 action.yaml
2026-06-25 13:47:14 +00:00
jiantw83
e8fa3ab67e
feat(calculate-version): 改為計算版本 Docker Action
2026-06-25 10:52:39 +00:00
jiantw83
3cf52a2302
feat: add role management and usage tracking modules
...
- Implemented role parsing and loading functionality in roles.js, allowing for structured role definitions with metadata.
- Added tests for role management to ensure correct parsing and loading of roles.
- Created usage.js to track API usage metrics, including token counts and rate limits.
- Developed tests for usage tracking to validate functionality and edge cases.
- Enhanced overall code structure and documentation for clarity and maintainability.
2026-06-25 09:13:15 +00:00
jiantw83
6cdbcff681
Initial commit
2026-06-25 08:51:03 +00:00