-
Notifications
You must be signed in to change notification settings - Fork 6
/
.mergify.yml
75 lines (75 loc) · 1.76 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
defaults:
actions:
squash:
commit_message: first-commit
pull_request_rules:
- name: dismiss reviews
conditions: []
actions:
dismiss_reviews: {}
- name: warn on conflicts
conditions:
- conflict
- '-closed'
actions:
comment:
message: '@{{author}} this pull request is now in conflict 😩'
label:
toggle:
- conflict
- name: label on unresolved
conditions:
- '#review-threads-unresolved>0'
actions:
label:
toggle:
- review threads unresolved
- name: label on queued
conditions:
- queue-position>=0
actions:
label:
toggle:
- queued
- name: Clifus labels
conditions:
- base=main
- author=mergify-ci-bot
- head~=^clifus/
- 'title~=^chore: bump'
actions:
label:
add:
- dependencies
- name: Trivy label
conditions:
- base=main
- author=mergify-ci-bot
- head=trivy/daily-report
- 'body~=New CVEs:'
actions:
label:
add:
- new CVE
merge_protections:
- name: Changelog requirements
if:
- repository-name != mergify-shadow-office
success_conditions:
- or:
- '-title ~= ^feat'
- label = skip changelog
- label = need changelog
- name: Enforce conventional commit
description: Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
if: []
success_conditions:
- >-
title ~=
^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?:
- name: 🔎 Reviews
if: []
success_conditions:
- "#changes-requested-reviews-by = 0"
- "#review-threads-unresolved = 0"
- "#review-requested = 0"