From a19ca0e3639b2b3d90196bcb38d12ecc99026302 Mon Sep 17 00:00:00 2001 From: Soph <35721420+sophoah@users.noreply.github.com> Date: Mon, 7 Aug 2023 16:23:58 +0700 Subject: [PATCH] ci(Mergify): configuration update Signed-off-by: Soph --- .mergify.yml | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 000000000..16c895992 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,59 @@ +pull_request_rules: + - name: Squash merge to dev + conditions: + # applied for merge to the dev branch + - base=dev + # from the dev branch : no direct PR to main + - head=dev + # no unresolved threads + - "#review-threads-unresolved=0" + # Approved by two reviewers + - "#approved-reviews-by>=2" + # no unverified commit + - "#commits-unverified=0" + # Travis ci succeeded + - "check-success=Travis CI - Pull Request" + # git guardian succeeded + - "check-success=GitGuardian Security Checks" + # PR is not a draft + - -draft + # PR is not conflicting with the base branch + - -conflict + # conditions to avoid auto merge mistakes + # PR title doesn't have wip (not case sensitive) + - -title~=(?i)wip + # PR doesn't have WIP label (not case sensitive) + - label!=(?i)wip + # ready-to-merge is required to trigger the merge + - label=ready-to-merge + actions: + merge: + method: squash + - name: merge rule to main + conditions: + # applied for merge to the dev branch + - base=main + # no unresolved threads + - "#review-threads-unresolved=0" + # Approved by two reviewers + - "#approved-reviews-by>=2" + # no unverified commit + - "#commits-unverified=0" + # Travis ci succeeded + - "check-success=Travis CI - Pull Request" + # git guardian succeeded + - "check-success=GitGuardian Security Checks" + # PR is not a draft + - -draft + # PR is not conflicting with the base branch + - -conflict + # conditions to avoid auto merge mistakes + # PR title doesn't have wip (not case sensitive) + - -title~=(?i)wip + # PR doesn't have WIP label (not case sensitive) + - label!=(?i)wip + # ready-to-merge is required to trigger the merge + - label=ready-to-merge + actions: + merge: + method: merge \ No newline at end of file