refactor: address review suggestions

This commit is contained in:
2026-05-15 03:31:32 +00:00
parent 96659018eb
commit 3a55353238
3 changed files with 55 additions and 12 deletions
+7
View File
@@ -9,6 +9,7 @@
- 直接刪除超出保留數量的舊版本。
- 只處理你指定的 NuGet 套件名稱,可一次指定多個。
- 輸出可搜尋的 log,包含 API status、request id 與 summary。
- 每頁預設抓取 100 筆版本,可用 `PAGE_LIMIT` 調整。
## Token 來源順序
@@ -77,3 +78,9 @@ jobs:
- `entrypoint.sh:122-181` `fetch_package_versions`
- `entrypoint.sh:183-241` `collect_package_candidates`
- `entrypoint.sh:243-286` `process_candidates`
- `entrypoint.sh(整體)` 新增測試程式碼與測試框架
- `entrypoint.sh:7` 結構化 logging
- `entrypoint.sh:105` 驗證 `GITEA_SERVER_URL`
- `entrypoint.sh:125-126,241` 暫存檔重用與 I/O 微調
- `entrypoint.sh:149` 流式 JSON 合併
- `entrypoint.sh:204,215` 排序與日誌分離建議