diff --git a/.github/workflows/sanitize-closed-issues.yml b/.github/workflows/sanitize-closed-issues.yml index b87d73100608..6f0721a0d2db 100644 --- a/.github/workflows/sanitize-closed-issues.yml +++ b/.github/workflows/sanitize-closed-issues.yml @@ -29,6 +29,14 @@ jobs: }); } if (issue.data.state_reason === "not_planned") { + if (issue.data.milestone) { + await github.rest.issues.update({ + issue_number: issue.data.number, + owner: context.repo.owner, + repo: context.repo.repo, + milestone: null, + }); + } const statusLabels = newLabels.filter(l => l.startsWith("status: ")); if (statusLabels.length === 0) { await github.rest.issues.createComment({