Skip to content

Commit 52b1199

Browse files
authored
Merge pull request #266 from SLNE-Development/mergify/twisti-dev/config-update
ci(Mergify): configuration update
2 parents 7aeee79 + b633633 commit 52b1199

File tree

1 file changed

+39
-9
lines changed

1 file changed

+39
-9
lines changed

.mergify.yml

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,39 @@
1-
merge_protections:
2-
- name: Enforce conventional commit
3-
description: Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
4-
if:
5-
- base = master
6-
success_conditions:
7-
- "title ~=
8-
^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\\(.+\
9-
\\))?:"
1+
pull_request_rules:
2+
- name: Label Mergify Stacks PRs
3+
description: Pull requests that are part of a Mergify stack should be labeled as such
4+
conditions:
5+
- "commits[0].commit_message ~= (?m)Change-Id:"
6+
actions:
7+
label:
8+
toggle:
9+
- stack
10+
- name: Ping PR author when conflicting
11+
description: Warn the pull request author when their PR are conflicting
12+
conditions:
13+
- conflict
14+
- -closed
15+
actions:
16+
comment:
17+
message: >
18+
👋 {{author}} your PR is conflicting and needs to be updated to be
19+
merged
20+
- name: Label conflicting pull requests
21+
description: Add a label to a pull request with conflict to spot it easily
22+
conditions:
23+
- conflict
24+
- -closed
25+
actions:
26+
label:
27+
toggle:
28+
- conflict
29+
- name: Request review from team
30+
description: Request review from a specific team when checks are green.
31+
conditions:
32+
- -closed
33+
- "#approved-reviews-by = 0"
34+
- "#changes-requested-reviews-by = 0"
35+
- review-requested != @docs-review
36+
actions:
37+
request_reviews:
38+
teams:
39+
- docs-review

0 commit comments

Comments
 (0)