fix
This commit is contained in:
parent
241f21c28b
commit
72c147effd
3
.github/workflows/assign-to-project.yml
vendored
3
.github/workflows/assign-to-project.yml
vendored
|
@ -62,7 +62,6 @@ jobs:
|
||||||
const columns = await github.projects.listColumns({
|
const columns = await github.projects.listColumns({
|
||||||
project_id: project.id
|
project_id: project.id
|
||||||
})
|
})
|
||||||
console.log(columns)
|
|
||||||
console.log(`retrieved ${columns.data.length} columns.`)
|
console.log(`retrieved ${columns.data.length} columns.`)
|
||||||
const column = firstOrDefault(columns.data, (x) => x.name === column_name)
|
const column = firstOrDefault(columns.data, (x) => x.name === column_name)
|
||||||
if (column === null) {
|
if (column === null) {
|
||||||
|
@ -73,6 +72,7 @@ jobs:
|
||||||
console.log(`column id: ${column.id}.`)
|
console.log(`column id: ${column.id}.`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// determine content type
|
||||||
console.log('determine content type...')
|
console.log('determine content type...')
|
||||||
const event_name = context.eventName
|
const event_name = context.eventName
|
||||||
var content_type = null
|
var content_type = null
|
||||||
|
@ -91,6 +91,7 @@ jobs:
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('create the card...')
|
console.log('create the card...')
|
||||||
|
console.log(`in column ${column.id} for item ${context.issue.number} of type ${content_type}`)
|
||||||
await github.projects.createCard({
|
await github.projects.createCard({
|
||||||
column_id: column.id,
|
column_id: column.id,
|
||||||
//note:,
|
//note:,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user