diff --git a/.github/workflows/assign-to-project.yml b/.github/workflows/assign-to-project.yml index 839424a..a822eb2 100644 --- a/.github/workflows/assign-to-project.yml +++ b/.github/workflows/assign-to-project.yml @@ -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,