This commit is contained in:
Mark Eaton
2026-01-10 20:30:30 -05:00
parent 478efb72b7
commit 47f1d9e3ec
+4 -4
View File
@@ -79,9 +79,9 @@ def fetch_repos(session: requests.Session) -> list[dict]:
return repos return repos
def get_repo_push_timestamps(repos: list[dict]) -> dict[str, str]: def get_repo_timestamps(repos: list[dict]) -> dict[str, str]:
"""Extract repository names and their pushed_at timestamps.""" """Extract repository names and their updated_at timestamps."""
return {repo["name"]: repo.get("pushed_at", "") for repo in repos} return {repo["name"]: repo.get("updated_at", "") for repo in repos}
def load_state() -> dict: def load_state() -> dict:
@@ -193,7 +193,7 @@ def main() -> int:
# Fetch current repository state # Fetch current repository state
repos = fetch_repos(session) repos = fetch_repos(session)
current_timestamps = get_repo_push_timestamps(repos) current_timestamps = get_repo_timestamps(repos)
# Load previous state and check for changes # Load previous state and check for changes
saved_state = load_state() saved_state = load_state()