feat: 新增不需 API Key 的重大變更摘要模式(繁體中文輸出) - #11
Merged
Merged
Conversation
…ion in Traditional Chinese - Add `compact_summary` key to config.json (default: true) - Add `_is_major_version_bump()`, `_compute_severity()`, `_item_severity()` - Add `filter_critical_changes()` - rule-based filter for breaking/security/deprecation changes - Add `build_compact_report()` - outputs fixed-format zh-TW report: - 一句話總結 - 🔥 重大變更 (影響 / 我需要做 / 參考連結, max 10) - 🛡️ 風險與注意事項 (max 3) - ✅ 建議行動 checklist (3 items) - Update main() to dispatch to compact or full report based on config - Add 19 new unit tests covering all new functions - Fix pre-existing test to set compact_summary: false so it keeps testing build_report Agent-Logs-Url: https://github.com/hondayaya123/RepoWatchDog/sessions/205f3043-436e-4372-8189-212c75e821dd Co-authored-by: hondayaya123 <50391999+hondayaya123@users.noreply.github.com>
…rename patch_ var, extract join variable Agent-Logs-Url: https://github.com/hondayaya123/RepoWatchDog/sessions/205f3043-436e-4372-8189-212c75e821dd Co-authored-by: hondayaya123 <50391999+hondayaya123@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
hondayaya123
April 4, 2026 14:03
View session
hondayaya123
marked this pull request as ready for review
April 4, 2026 14:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
在不需要 OpenAI API Key / 不需要額外付費的前提下,新增「精簡摘要模式」,讓每週報告只列重大變更,並以繁體中文固定格式輸出。
變更說明
config.jsoncompact_summary: true(預設true)true→ 使用新的精簡摘要模式(無需 LLM)false→ 使用原本的完整報告模式scripts/watch_dog.py新增輔助函式
_is_major_version_bump(tag)_compute_severity(title, labels)_item_severity(item, type)filter_critical_changes(releases, prs, issues)_get_impact_and_action(item, type, severity)_generate_risks(critical, releases)_generate_actions(critical, ...)build_compact_report(watch_repos, token, since)重大變更判定關鍵字
breaking、security、CVE、deprecate、remove、migration、priority/high、breaking change;或 release tag 為 major version bump(vX.0.0)。輸出格式(
compact_summary: true)main()分派邏輯compact_summary: true→ 呼叫build_compact_report()compact_summary: false→ 呼叫原有build_report()(含 LLM 選項)tests/test_watch_dog.pytest_lookback_days_env_override:在測試 config 中補上compact_summary: false,確保繼續測試build_report路徑如何手動觸發 Workflow 觀看新摘要結果
lookback_days(留空預設 7 天)執行完成後會在 Issues 建立一個標題為
[RepoWatchDog] Weekly Summary YYYY-WNN的 Issue,內容即為新格式的繁體中文精簡報告。若要改回原本完整報告模式,只需將
config.json中的compact_summary改為false。