From 00f7bb897444127ee86b7303be8241d4898cd7eb Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Fri, 15 Oct 2021 13:38:19 +0200 Subject: [PATCH] Use PR author to determine whether to auto-approve Previously, the user who enabled auto-merge was used instead. --- .github/workflows/codeowner-self-approval.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeowner-self-approval.yml b/.github/workflows/codeowner-self-approval.yml index 308c5afba0e..8eeeb1fd251 100644 --- a/.github/workflows/codeowner-self-approval.yml +++ b/.github/workflows/codeowner-self-approval.yml @@ -49,7 +49,7 @@ jobs: - name: Check author is allowed to self-approve shell: python env: - submitter: ${{ github.event.sender.login }} + submitter: ${{ github.event.pull_request.user.login }} pr: ${{ github.event.pull_request.number }} repo: ${{ github.event.repository.full_name }} owners: ${{ steps.owners.outputs.owners }}