From 5e5e0fa7cecf8cad3a53e20e20b89808a8df5686 Mon Sep 17 00:00:00 2001 From: Jarred Stelfox Date: Sat, 10 Oct 2026 21:37:52 -0700 Subject: [PATCH] Pass issue_number to listLabelsOnIssue in the repair script Octokit's route takes issue_number, so `number` built /repos/{repo}/issues//labels?number=N, a 404 for every item. The 404 guard for deleted issues hid it, and the dry run on dev found no new name for any stale label. Co-Authored-By: Claude Opus 5.5 --- bin/repair-renamed-labels | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/repair-renamed-labels b/bin/repair-renamed-labels index 7eabf4c1..3430b7d9 100755 --- a/bin/repair-renamed-labels +++ b/bin/repair-renamed-labels @@ -68,7 +68,7 @@ try { let now = null; for (const number of nums.slice(0, SAMPLE)) { const data = await git.github.issues - .listLabelsOnIssue({ ...split(repo), number }) + .listLabelsOnIssue({ ...split(repo), issue_number: number }) .then(res => res.data) // deleted or moved away: it says nothing about the new name .catch(err => (err.status === 404 ? null : Promise.reject(err)));