mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Ops] Add github action for auto-approving PRs from kibanamachine (#160641)
## Summary Adds a GitHub workflow/action for auto-approving backport PRs incoming from kibanamachine. These changes are already reviewed by an owner when it was merged to `main` - afterward the `kibanamachine` creates the PR to the non-main branches, these can be auto-approved when created, so that the backport automation is working without assistance.
This commit is contained in:
parent
a64d5823f1
commit
d7e8eaa1a2
1 changed files with 23 additions and 0 deletions
23
.github/workflows/auto-approve-backports.yml
vendored
Normal file
23
.github/workflows/auto-approve-backports.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
on:
|
||||
pull_request_target:
|
||||
branches-ignore:
|
||||
- main
|
||||
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'
|
||||
permissions:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: hmarr/auto-approve-action@v3
|
||||
with:
|
||||
github-token: ${{ secrets.KIBANAMACHINE_TOKEN }}
|
Loading…
Add table
Add a link
Reference in a new issue