From 021137402f1f16f98fc86883eb26ae9ffda00bab Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 10 Jan 2022 15:02:03 +0100 Subject: [PATCH] fix --- .github/workflows/assign-milestones.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/assign-milestones.js b/.github/workflows/assign-milestones.js index 68cf762..3872524 100644 --- a/.github/workflows/assign-milestones.js +++ b/.github/workflows/assign-milestones.js @@ -40,18 +40,18 @@ module.exports = ({github, context}) => { console.log(`event: ${eventName}/${eventAction}`) const columnId = context.payload.project_card.column_id - const column = restapi.projects.getColumn({ + const column = await restapi.projects.getColumn({ column_id: columnId }) console.log(column) const cardId = context.payload.project_card.id - const card = restapi.projects.getCard({ + const card = await restapi.projects.getCard({ card_id: cardId }) console.log(card) - const milestones = restapi.issues.listMilestones({ + const milestones = await restapi.issues.listMilestones({ repo: context.repo, owner: context.owner })