-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathmergify.yml
More file actions
90 lines (81 loc) · 2.37 KB
/
Copy pathmergify.yml
File metadata and controls
90 lines (81 loc) · 2.37 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
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
86
87
88
89
90
pull_request_rules:
- name: keep PRs up to date with main
conditions:
- -conflict
- -draft
- -closed
- -merged
- label!=do-not-merge
actions:
update: {}
- name: auto-merge GitHub Actions dependency bumps
description: >
Automatic merge of GitHub Actions dependency bump PRs with 1 approval
conditions:
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- base=main
- label!=do-not-merge
- label!=needs-rebase
- check-success=pre-commit
- check-success=e2e-tests
- check-success=tests
- or:
- title~=(?i)bump.*action
- title~=(?i)update.*github.*action
- label=dependencies
- files~=^\.github/workflows/
actions:
merge:
method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
{% for user in approved_reviews_by %}
Approved-by: {{ user }}
{% endfor %}
- name: auto-merge
description: >
Automatic merge of PRs to main
conditions:
- "#approved-reviews-by>=2"
- "#changes-requested-reviews-by=0"
- base=main
- label!=do-not-merge
- label!=needs-rebase
- check-success=pre-commit
- check-success=e2e-tests
- check-success=tests
# - check-success=build-latest-image # TODO: uncomment this when the credentials are added to the repo
actions:
merge:
method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
{% for user in approved_reviews_by %}
Approved-by: {{ user }}
{% endfor %}
- name: ping author on conflicts and add 'needs-rebase' label
conditions:
- conflict
- -closed
actions:
label:
add:
- needs-rebase
comment:
message: >
This pull request has merge conflicts that must be resolved before it
can be merged. @{{author}} please rebase it.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork
- name: remove 'needs-rebase' label when conflict is resolved
conditions:
- -conflict
- -closed
actions:
label:
remove:
- needs-rebase
merge_protections_settings:
reporting_method: check-runs