forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.04 KB
/
assign-backport-reviewer.yml
File metadata and controls
37 lines (33 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Assign manual backport reviewer
on:
pull_request_target:
branches:
- '8.19'
- '9.*'
- '[1-9][0-9]*.*'
types:
- labeled
permissions:
contents: read
jobs:
assign-reviewer:
name: Find reviewer for manual backport
runs-on: ubuntu-latest
if: |
github.event.label.name == 'backport' &&
github.event.pull_request.user.login != 'kibanamachine'
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
sparse-checkout: .github
sparse-checkout-cone-mode: true
fetch-depth: 1
- name: Assign reviewers
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
github-token: ${{ secrets.KIBANAMACHINE_TOKEN }}
script: |
const assignBackportReviewer = require('./.github/scripts/assign_backport_reviewer');
await assignBackportReviewer({ github, context, core });