huey: stop triage comment spam

This commit is contained in:
Alexander Whitestone
2026-03-27 22:19:19 -04:00
parent 4042a23441
commit 7f912b7662

View File

@@ -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"))