-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
.mergify.yml
41 lines (37 loc) · 1.36 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
pull_request_rules:
- name: request changelog labels when a PR is missing them
conditions:
- base=main
- -label=bug
- -label=enhancement
- -label=documentation
- -label=security
- -label=removed
- -label=infrastructure
actions:
label:
add:
- needs changelog label
comment:
message: |
It looks like this PR is missing a label to determine the type of change it introduces. The maintainer should add one of the following labels:
- `bug` for bugfixes.
- `enhancement` for new features and improvements.
- `documentation` for documentation changes.
- `security` for security patches.
- `removed` for feature removals.
- `infrastructure` for internal changes that should not go in the changelog.
Additionally, the maintainer may also want to add one of the following:
- `breaking` for breaking changes.
- `deprecated` for feature deprecations.
Once the correct labels have been set, simply remove the `needs changelog label` label from this PR so I can merge it.
- name: merge PRs automatically
conditions:
- base=main
- -label="needs changelog label"
- -label=blocked
- "#approved-reviews-by>=1"
- -draft
actions:
merge:
method: merge