From a7ff547627aaeec37e585bfea69c5a77cc273d98 Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 10 Jan 2022 16:02:56 +0100 Subject: [PATCH] fix --- .github/workflows/assign-milestones.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/assign-milestones.js b/.github/workflows/assign-milestones.js index 4d87fde..4b53216 100644 --- a/.github/workflows/assign-milestones.js +++ b/.github/workflows/assign-milestones.js @@ -83,7 +83,7 @@ module.exports = async ({github, context}) => { console.log(issuResponse.data) itemId = issueResponse.data.id } - if (itemType == 'pulls') { + else if (itemType == 'pulls') { const pullResponse = await restapi.pulls.get({ owner: context.owner, repo: context.repo, @@ -92,6 +92,10 @@ module.exports = async ({github, context}) => { console.log(pullResponse.data) itemId = pullResponse.data.id } + else { + console.log(`item: ${itemType} ??`) + } + console.log(`item: ${itemType}/${itemId}`) const milestones = await restapi.issues.listMilestones({ repo: context.repo,