From 6a340982feff3b900150411564dd91399269a778 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 28 Jun 2023 16:03:40 -0400 Subject: [PATCH] [8.9] fix(NA): checking pr author through github.head_ref instead of pull_request event on auto backport approve ghaction (#160807) (#160809) # Backport This will backport the following commits from `main` to `8.9`: - [fix(NA): checking pr author through github.head_ref instead of pull_request event on auto backport approve ghaction (#160807)](https://github.com/elastic/kibana/pull/160807) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Tiago Costa --- .github/workflows/auto-approve-backports.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/auto-approve-backports.yml b/.github/workflows/auto-approve-backports.yml index 65e5e2436ab71..1fa73930be059 100644 --- a/.github/workflows/auto-approve-backports.yml +++ b/.github/workflows/auto-approve-backports.yml @@ -5,16 +5,13 @@ on: types: - opened -env: - NODE_ENV: kibana-github-action - jobs: approve: name: Auto-approve backport runs-on: ubuntu-latest if: | contains(github.event.pull_request.labels.*.name, 'backport') && - github.event.pull_request.user.login == 'kibanamachine' + contains(github.head_ref, 'kibanamachine:backport') permissions: pull-requests: write steps: