fix
This commit is contained in:
parent
4611d58702
commit
ef71b6110f
5
.github/workflows/assign-to-project.yml
vendored
5
.github/workflows/assign-to-project.yml
vendored
|
@ -42,10 +42,12 @@ jobs:
|
||||||
}
|
}
|
||||||
|
|
||||||
// find the project
|
// find the project
|
||||||
|
console.log('find project...')
|
||||||
const projects = await github.projects.listForRepo({
|
const projects = await github.projects.listForRepo({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
})
|
})
|
||||||
|
console.log(`retrieved ${} projects.`)
|
||||||
const project = firstOrDefault(projects, (x) => x.name === project_name)
|
const project = firstOrDefault(projects, (x) => x.name === project_name)
|
||||||
//var project = null
|
//var project = null
|
||||||
//for (const p of projects) {
|
//for (const p of projects) {
|
||||||
|
@ -57,6 +59,9 @@ jobs:
|
||||||
core.setFailed(`Failed to find project "${project_name}".`)
|
core.setFailed(`Failed to find project "${project_name}".`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
console.log(`project id: ${project.id}`)
|
||||||
|
}
|
||||||
|
|
||||||
// find the column
|
// find the column
|
||||||
const columns = await github.projects.listColumns({
|
const columns = await github.projects.listColumns({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user