-
Notifications
You must be signed in to change notification settings - Fork 1
/
.mergify.yml
81 lines (81 loc) · 2.27 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
pull_request_rules:
- name: v0.1 feature-keygen backport
conditions:
- label=v0.1
- label=feature-keygen
actions:
backport:
assignees:
- "{{ merged_by|replace('mergify[bot]', label|select('equalto',
'community')|first|default(author)|replace('community',
'@kuglabs/core-team')) }}"
ignore_conflicts: true
labels:
- feature-keygen
branches:
- v0.1
- name: Set automerge label on mergify backport PRs
conditions:
- author=mergify[bot]
- head~=^mergify/bp/
- "#status-failure=0"
- -merged
- label!=no-automerge
actions:
label:
add:
- automerge
- name: Label Mergify Stacks PRs
description: Pull requests that are part of a Mergify stack should be labeled as such
conditions:
- "commits[0].commit_message ~= (?m)Change-Id:"
actions:
label:
toggle:
- stack
- name: Ping PR author when conflicting
description: Warn the pull request author when their PR are conflicting
conditions:
- conflict
- -closed
actions:
comment:
message: >
👋 {{author}} your PR is conflicting and needs to be updated to be
merged
- name: Add a queue label when PR is queued
description: Toggle the queue label when a pull request is (un)queued.
conditions:
- queue-position > 0
actions:
label:
toggle:
- merge-queued
- name: label changes from community
conditions:
- author≠@core-team
- author≠mergify[bot]
- author≠dependabot[bot]
- author≠github-actions[bot]
actions:
label:
add:
- community
- name: Automatic merge (squash)
description: Merge when PR passes all branch protection and has label automerge
conditions:
- label = automerge
actions:
merge:
method: squash
- name: Request review from team
description: Request review from a specific team when checks are green.
conditions:
- -closed
- "#approved-reviews-by = 0"
- "#changes-requested-reviews-by = 0"
- review-requested != @kuglabs/core-team
actions:
request_reviews:
teams:
- "@kuglabs/core-team"