Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Auto-add issues only to open milestones (#74871)

Ryan Lauried29198d4fa65
diff --git a/release/src/milestones.ts b/release/src/milestones.ts
index 26243c4680a..58fffc477ac 100644
--- a/release/src/milestones.ts
+++ b/release/src/milestones.ts
@@ -238,7 +238,7 @@ export async function setMilestoneForCommits({
// figure out milestone
const branchVersion = getVersionFromReleaseBranch(branchName);
const majorVersion = getMajorVersion(branchVersion);
- const openMilestones = await getMilestones({ github, owner, repo });
+ const openMilestones = await getMilestones({ github, owner, repo, state: 'open' });
const nextMilestone = getNextMilestone({ openMilestones, majorVersion });
if (!nextMilestone) {