fix
This commit is contained in:
parent
af84310aa0
commit
2376e90494
4
.github/workflows/assign-to-project.yml
vendored
4
.github/workflows/assign-to-project.yml
vendored
|
@ -80,6 +80,7 @@ jobs:
|
|||
|
||||
// determine content type
|
||||
console.log('determine content type...')
|
||||
console.log(context)
|
||||
const event_name = context.eventName
|
||||
var content_type = null
|
||||
var item_number = null
|
||||
|
@ -89,7 +90,7 @@ jobs:
|
|||
item_number = context.issue.number
|
||||
item_id = context.issue.id
|
||||
}
|
||||
if (event_name === 'pull_request_target') {
|
||||
if (event_name === 'pull_request' || event_name === 'pull_request_target') {
|
||||
content_type = 'PullRequest'
|
||||
item_number = context.pull_request.number
|
||||
item_id = context.pull_request.id
|
||||
|
@ -104,7 +105,6 @@ jobs:
|
|||
|
||||
// get the item
|
||||
console.log('get the item...')
|
||||
console.log(context)
|
||||
const item = await github.issues.get({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
|
|
Loading…
Reference in New Issue
Block a user