INNER CODE UNIT · Python
data_issues_for_entry
crocs-muni/javacard-curated-list · scripts/process_curated_list.py:419
def data_issues_for_entry(e):
"""Issues only detectable by actually resolving the badge (repo renamed/deleted/private/typo)."""
issues = []
main_or = e["main_owner_repo"]
if not main_or:
return issues
result = fetch_repo_badges(*main_or)
if result["stars"] is None:
issues.append(("missing_stars", f"stars could not be resolved for {owner_repo_str(main_or)} "
f"({result['last_commit_raw'] or result['error'] or 'no data'})"))
if result["last_commit_raw"] is None or result["last_commit_raw"] == "repo not found":
issues.append(("missing_last_commit", f"last commit could not be resolved for {owner_repo_str(main_or)} "
f"({result['last_commit_raw'] or result['error'] or 'no data'})"))
if result["developers"] is None:
issues.append(("missing_developers", f"developer/contributor count could not be resolved for "
f"{owner_repo_str(main_or)} ({result['last_commit_raw'] or result['error'] or 'no data'})"))
return issues