fix: recount commits touching a path once stale

The commit list behind the triage drift score was cached for good,
so pushes upstream never moved a profile up the triage. It now
expires like the other moving answers.
This commit is contained in:
Abdessamad Derraz committed 2026-10-18 03:53:12 +02:00
1 parent 2dcb49fa4c
commit 2a13e3ee11
2 files changed
+27 -1

No files matched your search

+3 -1
View File
@@ -773,7 +773,9 @@ def commits_touching(
f"{repo.api_base}/repos/{repo.slug}/commits"
f"?path={quoted}&since={stamp}&limit=100"
)
payload = _api(url, cache_dir, offline)
# The list grows with every push touching the path: cached for good, the
# triage drift score stayed at whatever the first run counted.
payload = _api(url, cache_dir, offline, MOVING_TTL)
if not isinstance(payload, list):
return 0
return sum(