Skip to content

Commit a679a04

Browse files
authored
Remove 14-day clones badge JSON generation
Removed the badge JSON for 14-day clones tracking.
1 parent 15f4057 commit a679a04

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

scripts/update_clones_badges.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,14 @@ def main():
6363
history[ts] = {"count": int(p.get("count", 0)), "uniques": int(p.get("uniques", 0))}
6464

6565
total_tracked = sum(v.get("count", 0) for v in history.values())
66-
67-
# Badge JSON (Shields endpoint schema)
68-
badge_14d = {
69-
"schemaVersion": 1,
70-
"label": "clones (14d)",
71-
"message": f"{count_14d} ({uniques_14d} uniques)",
72-
}
66+
7367
badge_total = {
7468
"schemaVersion": 1,
7569
"label": "clones (tracked)",
7670
"message": str(total_tracked),
7771
}
7872

7973
write_json(history_path, dict(sorted(history.items())))
80-
write_json(out_dir / "clones-14d.json", badge_14d)
8174
write_json(out_dir / "clones-total.json", badge_total)
8275

8376
# Log utile

0 commit comments

Comments
 (0)