make it minimal
This commit is contained in:
9
.github/workflows/assign-milestones.js
vendored
9
.github/workflows/assign-milestones.js
vendored
@@ -9,6 +9,10 @@
|
|||||||
// if issue is not closed,
|
// if issue is not closed,
|
||||||
// remove issue from milestone, if any
|
// remove issue from milestone, if any
|
||||||
|
|
||||||
|
// 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}) => {
|
module.exports = ({github, context}) => {
|
||||||
|
|
||||||
const restapi = github.rest
|
const restapi = github.rest
|
||||||
@@ -25,6 +29,10 @@ module.exports = ({github, context}) => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(`event: ${eventName}/${eventAction}`)
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
// get and validate the card
|
// get and validate the card
|
||||||
const cardMeh = context.action.card_number
|
const cardMeh = context.action.card_number
|
||||||
|
|
||||||
@@ -119,5 +127,6 @@ module.exports = ({github, context}) => {
|
|||||||
content_type: content_type
|
content_type: content_type
|
||||||
})
|
})
|
||||||
console.log('created')
|
console.log('created')
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/assign-milestones.yml
vendored
2
.github/workflows/assign-milestones.yml
vendored
@@ -2,7 +2,7 @@ name: Assign Milestones
|
|||||||
on:
|
on:
|
||||||
project_card:
|
project_card:
|
||||||
# ignore: moved, converted, edited
|
# ignore: moved, converted, edited
|
||||||
types: [ created, deleted ]
|
types: [ created, deleted, moved ] # FIXME temp
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
assign:
|
assign:
|
||||||
|
|||||||
Reference in New Issue
Block a user