forked from aws-samples/aws-cdk-intro-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
47 lines (46 loc) · 1.69 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
# See https://doc.mergify.io
pull_request_rules:
- name: automatic merge
actions:
comment:
message: Thank you for contributing! Your pull request is now being automatically merged.
merge:
strict: smart
method: squash
delete_head_branch: {}
dismiss_reviews: {}
conditions:
- -title~=(WIP|wip)
- -label~=^(blocked|do-not-merge)
- -merged
- -closed
- "#approved-reviews-by>=1"
- -approved-reviews-by~=author
- "#changes-requested-reviews-by=0"
- "#commented-reviews-by=0"
- status-success=Semantic Pull Request
- name: comment checklist
actions:
comment:
message: >
"### Pull Request Checklist
* [ ] Testing
- Unit test added (prefer not to modify an existing test, otherwise, it's probably a breaking change)
* [ ] Title and Description
- __Change type__: title prefixed with **fix**, **feat** and module name in parens, which will appear in changelog
- __Title__: use lower-case and doesn't end with a period
- __Breaking?__: last paragraph: 'BREAKING CHANGE: <describe what changed + link for details>'
- __Issues__: Indicate issues fixed via: '**Fixes #xxx**' or '**Closes #xxx**'"
conditions:
- base=master
- name: remove stale reviews
actions:
dismiss_reviews: {}
conditions:
- base=master
- name: if fails conventional commits
actions:
comment:
message: Title does not follow the guidelines of [Conventional Commits](https://www.conventionalcommits.org). Please adjust title before merge.
conditions:
- -status-success=Semantic Pull Request