forked from adrianjost/files-sync-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.mergify.yml
57 lines (57 loc) · 1.42 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
# GENERATED CONTENT
# remove repo from adrianjost/.github/synced/workflows/generator.js before editing
queue_rules:
- name: branchProtection
conditions:
- '-merged'
pull_request_rules:
- name: label PRs with conflicts
conditions:
- conflict
actions:
label:
add:
- has conflicts
- name: remove has conflicts label if conflicts got resolved
conditions:
- label~=has conflicts
- '-conflict'
actions:
label:
remove:
- has conflicts
- name: let @adrianjost recreate dependabot PRs with conflicts
conditions:
- author~=dependabot(-preview)?\[bot\]
- conflict
actions:
comment:
message: Someone with write access should tell dependabot to recreate this PR.
- name: auto merge passing Dependabot pull requests
conditions:
- author~=dependabot(-preview)?\[bot\]
actions:
queue:
name: branchProtection
method: squash
- name: auto merge when ready to merge label is set
conditions:
- label=ready to merge
actions:
queue:
name: branchProtection
method: merge
- name: remove ready to merge when merged
conditions:
- merged
- label=ready to merge
actions:
label:
remove:
- ready to merge
- name: delete merged branches
conditions:
- merged
- label!=WIP
actions:
delete_head_branch: {}