feat/log-period-report-skill #14
1 Participants
Notifications
Due Date
No due date set.
Depends on
#20 feat/gitea-check-report-wiki-types
plugins/gitea
Reference: plugins/log#14
Reference in New Issue
Block a user
摘要
變更內容
skills/report/SKILL.mdtools/report-range.shtools/report-template.sh.jsc/templates/優先於技能自帶的templates/report-daily.mdtemplates/report-weekly.mdtemplates/report-monthly.mdtemplates/report-yearly.mdtemplates/report-contents.mdREPORT_CONTENTS版面README.md、三份 manifest設計重點
date。手刻閏年與週界的出錯方式很安靜:報表少算一天不會有人發現。date -d不支援時退回 BSD 的date -v,兩者都沒有就明確失敗。.jsc/templates/report-{period}.md就換掉版面,技能不必改。報告要標明這次用的是哪一份,同一期間用兩份範本render 出來的結果必須追得回檔案。花費時間的條目不進總和,報成「無資料」而不是估一個值。報表拿去對工時,估出來的數字比缺漏更難處理。LEARN_CONTENTS,其他期間不讀:教訓要累積夠久才看得出是不是同一類問題重複發生。測試結果
sh -n通過:report-range.sh、report-template.sh。report-range.sh四種期間(基準日 2026-08-26):日2026-08-26、週2026-08-24到2026-08-30(2026-W35)、月2026-08-01到2026-08-31、年2026-01-01到2026-12-31,全部正確。2026-08-30仍歸2026-W35;跨年週2026-01-01算出2025-12-29到2026-01-04(2026-W01);閏年2024-02算出 29 天;平年2026-02算出 28 天。report-template.sh list:四種期間都解析到技能自帶範本,來源標skill。.jsc/templates/report-weekly.md,resolve weekly改指向該檔並標project,resolve daily仍回技能範本標skill。jsc-meta/tools/ste100-lint.sh:無違規。前置 Push Request
REPORT_{HASH},需要gitea.sh放行 REPORT 類型。What: 新增 jsc-log:report,把工作日誌總結成年報、月報、週報或日報,寫進 wiki REPORT_{HASH}。另加 tools/report-range.sh 算期間、tools/report-template.sh 解析範本,以及四份報表範本與報表目錄範本。 Why: worklog 只記單筆工作,累積起來沒有工具看得出一週或一個月做了什麼、什麼在卡。要總結只能自己翻頁面加總。 How: 期間換算交給系統的 date,不自己算閏年與週界;週次採 ISO-8601。範本解析採工作目錄優先,.jsc/templates/report-{period}.md 蓋過技能自帶的那份,專案要換格式不必改技能。資料讀 LOG_CONTENTS 列出的所有日誌頁,取工作日期落在期間內的條目,只加總條目真的寫了的數字。 Who: 工作日誌的期間總結。