From 01e62f0cc337ade27e31979ab42898e9c1429e0f Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 16 Oct 2020 00:37:03 +0000 Subject: [PATCH] =?UTF-8?q?Build/Test=20Tools:=20Change=20the=20event=20th?= =?UTF-8?q?at=20triggers=20the=20=E2=80=9CWelcome=E2=80=9D=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a contributor opens their first pull request to `wordpress-develop`, the “Welcome” workflow runs and leaves a comment with guidance, helpful information, and resources. However, because a workflow run triggered by the `pull_request` event runs against the workflow and code from the merge commit, the needed context and permissions to comment on the pull request are missing. By changing the trigger event to `pull_request_target`, the workflow runs against the workflow and code in the base of the pull request and is able to comment on when appropriate. See #50401. git-svn-id: https://develop.svn.wordpress.org/trunk@49169 602fd350-edb4-49c9-b593-d223f7449a82 --- .github/workflows/welcome-new-contributors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/welcome-new-contributors.yml b/.github/workflows/welcome-new-contributors.yml index bb04c8bc8a..e10c1b04e2 100644 --- a/.github/workflows/welcome-new-contributors.yml +++ b/.github/workflows/welcome-new-contributors.yml @@ -1,7 +1,7 @@ name: Welcome New Contributors on: - pull_request: + pull_request_target: types: [ opened ] jobs: