From a8da58dd52b0dcb2b04049fdcfba7de14e760310 Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 10 Jan 2022 12:08:40 +0100 Subject: [PATCH] make it minimal --- .github/workflows/assign-milestones.js | 11 ++++++++++- .github/workflows/assign-milestones.yml | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/assign-milestones.js b/.github/workflows/assign-milestones.js index 941f144..9521cf1 100644 --- a/.github/workflows/assign-milestones.js +++ b/.github/workflows/assign-milestones.js @@ -9,8 +9,12 @@ // if issue is not closed, // remove issue from milestone, if any -module.exports = ({github, context}) => { +// an issue or PR actually becomes a card (or, a card is actually created...) when +// it's move to a project column for the first time - being assigned to the project +// and showing in project's backlog is not enough. +module.exports = ({github, context}) => { + const restapi = github.rest // get and validate the event name @@ -25,6 +29,10 @@ module.exports = ({github, context}) => { return } + console.log(`event: ${eventName}/${eventAction}`) + + /* + // get and validate the card const cardMeh = context.action.card_number @@ -119,5 +127,6 @@ module.exports = ({github, context}) => { content_type: content_type }) console.log('created') + */ } diff --git a/.github/workflows/assign-milestones.yml b/.github/workflows/assign-milestones.yml index ddb0377..0b936cd 100644 --- a/.github/workflows/assign-milestones.yml +++ b/.github/workflows/assign-milestones.yml @@ -2,7 +2,7 @@ name: Assign Milestones on: project_card: # ignore: moved, converted, edited - types: [ created, deleted ] + types: [ created, deleted, moved ] # FIXME temp jobs: assign: