Skip to content

Commit

Permalink
Remove milestone assignment from issues closed as "not planned"
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Jan 27, 2025
1 parent 7d66196 commit e6446ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/sanitize-closed-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit e6446ff

Please sign in to comment.