scripts/auto-close-duplicates.ts: dont change the labels

This commit is contained in:
Meghan Denny
2025-10-29 14:57:32 -07:00
committed by GitHub
parent 9d0ef94557
commit 9d4a04cff9

View File

@@ -185,13 +185,7 @@ async function closeIssueAsDuplicate(
duplicateOfNumber: number,
token: string,
): Promise<void> {
// Close the issue as duplicate and add the duplicate label
await githubRequest(`/repos/${owner}/${repo}/issues/${issueNumber}`, token, "PATCH", {
state: "closed",
state_reason: "duplicate",
labels: ["duplicate"],
});
// Close the issue as duplicate
await githubRequest(`/repos/${owner}/${repo}/issues/${issueNumber}/comments`, token, "POST", {
body: `This issue has been automatically closed as a duplicate of #${duplicateOfNumber}.