mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 17:33:30 -05:00
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:
1 parent
2dcb49fa4c
commit
2a13e3ee11
2 files changed
+27
-1
No files matched your search
+3
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user