forked from hedyorg/hedy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
43 lines (41 loc) · 1.52 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
# Using a Merge queue makes Mergify automatically keep the PR
# up-to-date with 'main', one PR at a time.
queue_rules:
- name: default_queue
conditions:
- "check-success=build"
pull_request_rules:
- name: Automatic squash merge on approval for non-Weblate PRs
conditions:
- and:
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- "check-success=build"
- "check-success=cypress"
- "-author=weblate"
actions:
comment:
message: Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to [allow changes to be pushed to your fork](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork)).
queue:
name: default_queue
method: squash
commit_message_template: |-
{{ title }} (#{{number}})
{{ body }}
- name: Automatic regular merge for Weblate PRs
conditions:
- and:
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- "check-success=build"
- "check-success=cypress"
- "author=weblate"
actions:
comment:
message: Thanks Weblate! This pull request is going to be merged automatically.
queue:
name: default_queue
method: merge
commit_message_template: |-
{{ title }} (#{{number}})
{{ body }}