From 4fd886f0e0d7aea1dd33b9e8161be4eadcf1e7ba Mon Sep 17 00:00:00 2001 From: Vinta Chen Date: Fri, 16 Oct 2026 14:15:37 +0800 Subject: [PATCH] feat: honor owner/* organization lines in scan_stars prior verdicts Co-Authored-By: Claude --- .claude/skills/scan-stars/scripts/scan_stars.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.claude/skills/scan-stars/scripts/scan_stars.py b/.claude/skills/scan-stars/scripts/scan_stars.py index f6c10c7a..c0b5fc4e 100644 --- a/.claude/skills/scan-stars/scripts/scan_stars.py +++ b/.claude/skills/scan-stars/scripts/scan_stars.py @@ -92,6 +92,7 @@ def main() -> None: print("repo\tlanguage\tstars\tpushed\ttopics\tdescription\tprior") for star in stars: repo = star["full_name"].lower() + verdict = prior.get(repo) or prior.get(f"{star['owner']['login'].lower()}/*") if repo in listed: dropped["already listed"] += 1 elif star["owner"]["login"].lower() == login: @@ -102,11 +103,11 @@ def main() -> None: dropped["no push in 12 months"] += 1 elif datetime.fromisoformat(star["created_at"]) > now - timedelta(days=30): dropped["created under a month ago"] += 1 - elif repo in prior and not args.full: + elif verdict and not args.full: dropped["judged before"] += 1 else: description = " ".join((star["description"] or "").split()) - print("\t".join([star["full_name"], star["language"] or "-", str(star["stargazers_count"]), star["pushed_at"][:10], ",".join(star["topics"]), description, prior.get(repo, "")])) + print("\t".join([star["full_name"], star["language"] or "-", str(star["stargazers_count"]), star["pushed_at"][:10], ",".join(star["topics"]), description, verdict or ""])) print(f"{len(stars)} stars; {len(stars) - dropped.total()} candidates", file=sys.stderr) for reason, count in dropped.most_common():