From 2376e90494dfbc688a011424893acf140f973787 Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 20 Dec 2021 19:08:45 +0100 Subject: [PATCH] fix --- .github/workflows/assign-to-project.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,