From d1aba02e4012c55347fdaafa71a8bbfd7c044f61 Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 20 Dec 2021 13:01:12 +0100 Subject: [PATCH] fix --- .github/workflows/assign-to-project.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/assign-to-project.yml b/.github/workflows/assign-to-project.yml index 039dd9f..6247b67 100644 --- a/.github/workflows/assign-to-project.yml +++ b/.github/workflows/assign-to-project.yml @@ -1,8 +1,10 @@ name: Auto Assign PRs to Project on: - issues: - types: [ opened ] - pull_request: + #issues: + # types: [ opened ] + #pull_request: + # types: [ opened ] + pull_request_target: types: [ opened ] # github-script: https://github.com/actions/github-script @@ -79,7 +81,7 @@ jobs: if (event_name === 'issues') { content_type = 'Issue' } - if (event_name === 'pull_request') { + if (event_name === 'pull_request_target') { content_type = 'PullRequest' } if (!content_type) {