From 7f912b76626d66697d04d183cb68b4fef577f213 Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Fri, 27 Mar 2026 22:19:19 -0400 Subject: [PATCH] huey: stop triage comment spam --- tasks.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tasks.py b/tasks.py index 4f69e6dd..36daf10c 100644 --- a/tasks.py +++ b/tasks.py @@ -1159,17 +1159,17 @@ def archive_pipeline_tick(): @huey.periodic_task(crontab(minute="*/15")) def triage_issues(): - """Score and assign unassigned issues across all repos.""" + """Passively scan unassigned issues without posting comment spam.""" g = GiteaClient() - found = 0 + backlog = [] for repo in REPOS: for issue in g.find_unassigned_issues(repo, limit=10): - found += 1 - g.create_comment( - repo, issue.number, - "🔍 Triaged by Huey — needs assignment." - ) - return {"triaged": found} + backlog.append({ + "repo": repo, + "issue": issue.number, + "title": issue.title, + }) + return {"unassigned": len(backlog), "sample": backlog[:20]} @huey.periodic_task(crontab(minute="*/30"))