forked from aws-samples/aws-cdk-intro-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
51 lines (51 loc) · 1.86 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
pull_request_rules:
- name: automatic merge
actions:
comment:
message: Thank you for contriubting! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to [allow changes to be pushed to your fork](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork)).
merge:
method: squash
commit_message_template: |-
{{ title }} (#{{ number }})
{{ body }}
conditions:
- -title~=(WIP|wip)
- -label~=(blocked|do-not-merge|no-squash|two-approvers)
- -merged
- -closed
- "#approved-reviews-by>=1"
- -approved-reviews-by~=author
- "#changes-requested-reviews-by=0"
- "#review-threads-unresolved=0"
- status-success~=Build using Hugo
- author!=dependabot[bot]
- author!=dependabot-preview[bot]
- name: automatic merge of Dependabot PRs
actions:
comment:
message: Thanks Dependabot!
review:
type: APPROVE
message: Automatically approving PRs from Dependabot
merge:
method: squash
commit_message_template: |-
{{ title }} (#{{ number }})
{{ body }}
conditions:
- -title~=(WIP|wip)
- -label~=(blocked|do-not-merge)
- -merged
- -closed
- author=dependabot[bot]
- status-success~=Build using Hugo
- 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:
- author!=dependabot[bot]
- author!=dependabot-preview[bot]
- status-failure=Semantic PRs Failed
- -merged
- -closed