Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 24 additions & 21 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# See https://doc.mergify.io
merge_queue:
# Hopefully this gets Mergify to stop creating PRs just to test merges (it both messes with statistics and our automatic validations)
max_parallel_checks: 1
queue_rules:
- name: default-merge
Expand All @@ -9,20 +7,18 @@ queue_rules:
conditions:
- -title~=(WIP|wip)
- -label~=(blocked|do-not-merge)
# Only if no-squash is set
- label~=no-squash
- -merged
- -closed
- "#approved-reviews-by>=1"
- -approved-reviews-by~=author
# This is important! It makes the PR Linter work.
- "#changes-requested-reviews-by=0"
- status-success=validate-pr
- status-success=build
commit_message_template: |-
{{ title }} (#{{ number }})
{{ body }}

branch_protection_injection_mode: none
- name: priority-squash
update_method: merge
merge_method: squash
Expand All @@ -35,14 +31,13 @@ queue_rules:
- -closed
- "#approved-reviews-by>=1"
- -approved-reviews-by~=author
# This is important! It makes the PR Linter work.
- "#changes-requested-reviews-by=0"
- status-success=validate-pr
- status-success=build
commit_message_template: |-
{{ title }} (#{{ number }})
{{ body }}

branch_protection_injection_mode: none
- name: default-squash
update_method: merge
merge_method: squash
Expand All @@ -54,26 +49,29 @@ queue_rules:
- -closed
- "#approved-reviews-by>=1"
- -approved-reviews-by~=author
# This is important! It makes the PR Linter work.
- "#changes-requested-reviews-by=0"
- status-success=validate-pr
- status-success=build
commit_message_template: |-
{{ title }} (#{{ number }})
{{ body }}

branch_protection_injection_mode: none
pull_request_rules:
- name: label core
actions:
label:
add: [contribution/core]
add:
- contribution/core
conditions:
- author=@aws/aws-cdk-team
- -label~="contribution/core"
- name: automatic merge
actions:
comment:
message: Thank you for contributing! 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)).
message: Thank you for contributing! 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)).
queue:
name: default-squash
conditions:
Expand All @@ -86,14 +84,16 @@ pull_request_rules:
- author!=dependabot-preview[bot]
- "#approved-reviews-by>=1"
- -approved-reviews-by~=author
# This is important! It makes the PR Linter work.
- "#changes-requested-reviews-by=0"
- status-success=validate-pr
- status-success=build
- name: automatic priority merge
actions:
comment:
message: Thank you for contributing! 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)).
message: Thank you for contributing! 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)).
queue:
name: priority-squash
conditions:
Expand All @@ -107,14 +107,16 @@ pull_request_rules:
- author!=dependabot-preview[bot]
- "#approved-reviews-by>=1"
- -approved-reviews-by~=author
# This is important! It makes the PR Linter work.
- "#changes-requested-reviews-by=0"
- status-success=validate-pr
- status-success=build
- name: automatic merge (2+ approvers)
actions:
comment:
message: Thank you for contributing! Your pull request will be automatically updated and merged (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)).
message: Thank you for contributing! Your pull request will be automatically
updated and merged (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)).
queue:
name: default-squash
conditions:
Expand All @@ -128,28 +130,28 @@ pull_request_rules:
- author!=dependabot-preview[bot]
- "#approved-reviews-by>=2"
- -approved-reviews-by~=author
# This is important! It makes the PR Linter work.
- "#changes-requested-reviews-by=0"
- status-success=validate-pr
- status-success=build
- name: automatic merge (no-squash)
actions:
comment:
message: Thank you for contributing! Your pull request will be automatically updated and merged without squashing (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)).
message: Thank you for contributing! Your pull request will be automatically
updated and merged without squashing (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)).
queue:
name: default-merge
conditions:
- -title~=(WIP|wip)
- -label~=(blocked|do-not-merge)
# Only if no-squash is set
- label~=no-squash
- -merged
- -closed
- author!=dependabot[bot]
- author!=dependabot-preview[bot]
- "#approved-reviews-by>=1"
- -approved-reviews-by~=author
# This is important! It makes the PR Linter work.
- "#changes-requested-reviews-by=0"
- status-success=validate-pr
- status-success=build
Expand All @@ -169,7 +171,9 @@ pull_request_rules:
- 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.
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]
Expand All @@ -189,7 +193,6 @@ pull_request_rules:
- -closed
- author~=dependabot
- "#approved-reviews-by>=1"
# This is important! It makes the PR Linter work.
- "#changes-requested-reviews-by=0"
- status-success=validate-pr
- status-success=build
Expand Down
Loading