forked from hashim21223445/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
37 lines (37 loc) · 1.16 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
pull_request_rules:
- name: Automatic merge during office hours + hotfix support
description: >-
Merge when PR passes all branch protection during office hours, except for
hotfix
conditions:
- or:
- schedule = Mon-Fri 09:00-17:00[America/Los_Angeles]
- label = hotfix
actions:
merge:
- 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: Make sure PR are up to date before merging
description: >-
This automatically updates PRs when they are out-of-date with the base
branch to avoid semantic conflicts (next step is using a merge queue).
conditions: []
actions:
update:
- 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!=@TEAM_NAME_HERE
actions:
request_reviews:
teams:
- TEAM_NAME_HERE