summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-06-13 00:12:44 +0700
committerhathach <[email protected]>2026-06-13 00:12:44 +0700
commit594cd55084d9d76ade1d78c691dae7e3946eae3c (patch)
treef83389af7d2ad8fd0b8d01f4927ee93d5020d98e
parent5014146fef1aac07362ee35c0c361b8475f7636d (diff)
ci(metrics): collapse <1% size changes in Size Difference Report
Wrap the "Changes <1% in size" section in a <details> block like the "No changes" section, so the report comment only expands changes >1%. Co-Authored-By: Claude Fable 5 <[email protected]>
-rw-r--r--tools/metrics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/metrics.py b/tools/metrics.py
index b7aa056e4..d716cb2a5 100644
--- a/tools/metrics.py
+++ b/tools/metrics.py
@@ -425,7 +425,7 @@ def write_compare_markdown(comparison, path, sort_order='size'):
md_lines.append("")
render("Changes >1% in size", significant)
- render("Changes <1% in size", minor)
+ render("Changes <1% in size", minor, collapsed=True)
render("No changes", unchanged, collapsed=True)
with open(path, "w", encoding="utf-8") as f: