From 43f92c68bd4883509bb54ab4b77caebf03b3b8d1 Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Wed, 13 Nov 2024 15:09:23 +0300 Subject: [PATCH] Code freeze rules (#134) --- .github/mergify.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/mergify.yml b/.github/mergify.yml index 45511c3f..987acc10 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -510,6 +510,28 @@ pull_request_rules: remove: - rebase + - name: "Comment on PRs during code freeze and close them" + conditions: + - and: + - "base=main" # or whichever branch the freeze applies to + - "created-at > 2024-11-12" # Start date of the code freeze + - "repository-full-name=cloudposse/terraform-aws-components" # Apply only to cloudposse/terraform-aws-components + actions: + comment: + message: | + > [!WARNING] + > #### Migration of Components to a New GitHub Organization + > **CODE FREEZE 11/12 - 11/17** + > We are in the process of migrating each component in this repository to individual repositories under a new GitHub organization. + > This change aims to improve the stability, maintainability, and usability of our components. + > + > [Learn more](https://github.com/cloudposse/terraform-aws-components/issues/1177) about the migration and what to expect. + close: + message: | + This pull request has been closed due to an active **code freeze** during the migration of components to a new GitHub organization. + Please reopen it after **11/17** in the new repository under [Cloud Posse's Terraform Component GitHub Organization](https://github.com/cloudposse-terraform-components), + if still applicable. Thank you for your understanding. + #- name: mergeable # conditions: # - and: *is_open