[7.17] chore(NA): remove debug step on auto approve backport action (#160826) (#160828)

# Backport

This will backport the following commits from `main` to `7.17`:
- [chore(NA): remove debug step on auto approve backport action
(#160826)](https://github.com/elastic/kibana/pull/160826)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Tiago
Costa","email":"tiago.costa@elastic.co"},"sourceCommit":{"committedDate":"2023-06-28T23:09:20Z","message":"chore(NA):
remove debug step on auto approve backport action (#160826)\n\nI believe
I found out what was wrong with the previous implementation of\r\nthe
action.\r\nWe were trying to check for the existence of the backport
label when the\r\nPR is created which is never there (as it gets added
afterwards).\r\n\r\nThis PR is replacing the checking of the label by
the assert that the\r\nbranch name on a backport starts with `backport`
and the creator of the\r\nPR is
kibanamachine.","sha":"5ac939091605a115420fa6e47307e70c2a157d9d","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","Team:Operations","release_note:skip","backport:all-open","v8.10.0"],"number":160826,"url":"https://github.com/elastic/kibana/pull/160826","mergeCommit":{"message":"chore(NA):
remove debug step on auto approve backport action (#160826)\n\nI believe
I found out what was wrong with the previous implementation of\r\nthe
action.\r\nWe were trying to check for the existence of the backport
label when the\r\nPR is created which is never there (as it gets added
afterwards).\r\n\r\nThis PR is replacing the checking of the label by
the assert that the\r\nbranch name on a backport starts with `backport`
and the creator of the\r\nPR is
kibanamachine.","sha":"5ac939091605a115420fa6e47307e70c2a157d9d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/160826","number":160826,"mergeCommit":{"message":"chore(NA):
remove debug step on auto approve backport action (#160826)\n\nI believe
I found out what was wrong with the previous implementation of\r\nthe
action.\r\nWe were trying to check for the existence of the backport
label when the\r\nPR is created which is never there (as it gets added
afterwards).\r\n\r\nThis PR is replacing the checking of the label by
the assert that the\r\nbranch name on a backport starts with `backport`
and the creator of the\r\nPR is
kibanamachine.","sha":"5ac939091605a115420fa6e47307e70c2a157d9d"}}]}]
BACKPORT-->

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
This commit is contained in:
Kibana Machine 2023-06-28 20:15:32 -04:00 committed by GitHub
parent bda9b6554e
commit 9025ae78ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,8 +12,8 @@ jobs:
name: Auto-approve backport
runs-on: ubuntu-latest
if: |
contains(github.event.pull_request_target.labels.*.name, 'backport') &&
github.event.pull_request_target.user.login == 'kibanamachine'
startsWith(github.event.pull_request.head.ref, 'backport') &&
github.event.pull_request.user.login == 'kibanamachine'
permissions:
pull-requests: write
steps: