This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy path.mergify.yml
85 lines (83 loc) · 2.41 KB
/
.mergify.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
queue_rules:
- name: auto-merge
conditions:
- check-success=apm-ci/pr-merge
- label=automation
pull_request_rules:
- name: ask to resolve conflict
conditions:
- -merged
- -closed
- conflict
- -author=apmmachine
actions:
comment:
message: |
This pull request is now in conflicts. Could you fix it @{{author}}?
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/
```
git fetch upstream
git checkout -b {{head}} upstream/{{head}}
git merge upstream/{{base}}
git push upstream {{head}}
```
- name: automate backport creation to 7.x branch
conditions:
- merged
- base=main
- label=backport
actions:
backport:
assignees:
- "{{ author }}"
branches:
- "7.x"
labels:
- backport
- name: automatic merge backported Pull Requests from mergify when CI passes.
conditions:
- check-success=apm-ci/pr-merge
- author=mergify[bot]
- label=backport
- base=7.x
actions:
queue:
name: auto-merge
method: squash
- name: automatic merge when CI passes and the file tests/versions/apm_server.yml is modified.
conditions:
- files~=^tests/versions/apm_server.yml$
- check-success=apm-ci/pr-merge
actions:
queue:
name: auto-merge
method: squash
- name: automatic merge when CI passes and the file scripts/modules/cli.py is modified.
conditions:
- files~=^scripts/modules/cli.py$
- check-success=apm-ci/pr-merge
actions:
queue:
name: auto-merge
method: squash
- name: delete upstream branch after merging changes on scripts/modules/cli.py or it's closed
conditions:
- or:
- merged
- closed
- and:
- label=automation
- head~=^update.*
actions:
delete_head_branch:
- name: notify the backport has not been merged yet
conditions:
- -merged
- -closed
- author=mergify[bot]
- "#check-success>0"
- schedule=Mon-Mon 06:00-10:00[Europe/Paris]
actions:
comment:
message: |
This pull request has not been merged yet. Could you please review and merge it @{{ assignee | join(', @') }}? 🙏