From e0f2b0031a9d4d4223ef522d02d19d72154bdee7 Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 10 Jan 2022 19:53:04 +0100 Subject: [PATCH] fix --- .github/workflows/assign-milestones.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/assign-milestones.js b/.github/workflows/assign-milestones.js index c687bd4..41f58e1 100644 --- a/.github/workflows/assign-milestones.js +++ b/.github/workflows/assign-milestones.js @@ -126,11 +126,12 @@ module.exports = async ({github, context, core}) => { } const milestoneId = milestone.id + const milestoneNumber = milestone.number request = { owner: context.repo.owner, repo: context.repo.repo, - milestone: milestoneId + milestone: milestoneNumber } request[isIssue ? 'issue_number' : 'pull_number'] = itemNumber await itemApi.update(request) @@ -143,7 +144,7 @@ module.exports = async ({github, context, core}) => { repo: context.repo.repo } request[isIssue ? 'issue_number' : 'pull_number'] = itemNumber - request.milestone = null + request.milestone = "none" await itemApi.update(request) } else {