From e3d23849cac6d7bb4b8f6f8697d7cebddbe3b7f1 Mon Sep 17 00:00:00 2001 From: Praveen M Date: Fri, 21 Jun 2024 13:33:07 +0530 Subject: [PATCH] ci: add DNM label rules for mergify Signed-off-by: Praveen M --- .github/mergify.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/mergify.yml b/.github/mergify.yml index 3cf3152ff..1b7fd3350 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -28,6 +28,7 @@ pull_request_rules: - name: merge after two approvals (no API changes) conditions: - base~=^(main)|(release-.+)$ + - label!=DNM - label!=api - "#approved-reviews-by>=2" - "#changes-requested-reviews-by=0" @@ -46,6 +47,7 @@ pull_request_rules: - name: API changes needs approval from a contributor and a reviewer conditions: - base~=^(main)|(release-.+)$ + - label!=DNM - label=api - "#approved-reviews-by>=2" - "#changes-requested-reviews-by=0" @@ -63,6 +65,13 @@ pull_request_rules: queue: {} dismiss_reviews: {} delete_head_branch: {} + - name: pr title contains DNM + conditions: + - title~=DNM + actions: + label: + add: + - DNM - name: label API change conditions: - files~=^(api/)