-
Notifications
You must be signed in to change notification settings - Fork 58
49 lines (45 loc) · 1.42 KB
/
label.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
---
name: Label Checker
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled
jobs:
check_labels:
name: Check labels
runs-on: ubuntu-latest
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
any_of: backport-2.15.x,development
repo_token: ${{ secrets.GITHUB_TOKEN }}
set_milestone:
name: Set milestone
runs-on: ubuntu-latest
needs: [check_labels]
steps:
- uses: andrefcdias/[email protected]
if: ${{ contains(github.event.pull_request.labels.*.name, 'backport-2.15.x') }}
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
milestone: "2.15.1"
- uses: andrefcdias/[email protected]
if: ${{ contains(github.event.pull_request.labels.*.name, 'development') && !contains(github.event.pull_request.labels.*.name, 'backport-2.15.x')}}
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
milestone: "3.0.0"
enable_auto_merge:
name: Enable automerge
runs-on: ubuntu-latest
needs: [set_milestone]
# Specifically check that meeseeksmachine is opening the PR
if: github.event.pull_request.user.login == 'meeseeksmachine'
steps:
- uses: alexwilson/enable-github-automerge-action@main
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
merge-method: "REBASE"