# See https://doc.mergify.io queue_rules: - name: default conditions: - status-success~=AWS CodeBuild us-east-1 pull_request_rules: - name: label core actions: label: add: [ contribution/core ] conditions: - author~=^(RomainMuller|garnaat|skinny85|rix0rrr|NGL321|Jerry-AWS|MrArnoldPalmer|iliapolo|pkandasamy91|SoManyHs|uttarasridhar|otaviomacedo|madeline-k|kaizencc|comcalvi|Chriscbr|corymhall|peterwoodworth|ryparker|TheRealAmazonKendra|yuth|vinayak-kukreja)$ - -label~="contribution/core" - name: automatic merge actions: comment: message: Thank you for contributing! Your pull request will be updated from master 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 method: squash commit_message_template: |- {{ title }} (#{{ number }}) {{ body }} conditions: - base!=release - -title~=(WIP|wip) - -label~=(blocked|do-not-merge|no-squash|two-approvers) - -merged - -closed - author!=dependabot[bot] - author!=dependabot-preview[bot] - "#approved-reviews-by>=1" - -approved-reviews-by~=author - "#changes-requested-reviews-by=0" - status-success~=AWS CodeBuild us-east-1 - status-success=validate-pr - 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)). queue: name: default method: squash commit_message_template: |- {{ title }} (#{{ number }}) {{ body }} conditions: - base!=release - -title~=(WIP|wip) - label~=two-approvers - -label~=(blocked|do-not-merge|no-squash) - -merged - -closed - author!=dependabot[bot] - author!=dependabot-preview[bot] - "#approved-reviews-by>=2" - -approved-reviews-by~=author - "#changes-requested-reviews-by=0" - status-success~=AWS CodeBuild us-east-1 - status-success=validate-pr - 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)). queue: name: default method: merge commit_message_template: |- {{ title }} (#{{ number }}) {{ body }} 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 - "#changes-requested-reviews-by=0" - status-success~=AWS CodeBuild us-east-1 - status-success=validate-pr - name: remove stale reviews actions: dismiss_reviews: approved: true changes_requested: true conditions: - author!=dependabot[bot] - author!=dependabot-preview[bot] - label!=contribution/core - base=master - -merged - -closed - 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 Pull Request - -merged - -closed - name: automatic merge of Dependabot PRs actions: comment: message: Thanks Dependabot! queue: name: default method: squash commit_message_template: |- {{ title }} (#{{ number }}) {{ body }} conditions: - -title~=(WIP|wip) - -label~=(blocked|do-not-merge) - -merged - -closed - author~=dependabot - "#approved-reviews-by>=1" - "#changes-requested-reviews-by=0" - status-success~=AWS CodeBuild us-east-1 - status-success=validate-pr