From aa859c99864ca31c183bcab5c1db733bb08ed7e0 Mon Sep 17 00:00:00 2001 From: Andrew Stoycos Date: Mon, 3 Jun 2024 07:57:10 -0700 Subject: [PATCH] ci(Mergify): configuration update Signed-off-by: Andrew Stoycos --- .mergify.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 000000000..c095c4997 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,41 @@ +pull_request_rules: + - name: automatic merge for Dependabot pull requests + conditions: + - author=dependabot[bot] + - check-success=build-workflow-complete + - label!=hold + actions: + merge: + method: merge + + - name: automatic merge conditions for main + conditions: + - "#approved-reviews-by>=1" + - "#review-requested=0" + - "#changes-requested-reviews-by=0" + - base=main + - label!=hold + - label!=work-in-progress + - check-success=DCO + - check-success=build-workflow-complete + actions: + merge: + method: merge + + - name: Warn on conflicts + conditions: + - conflict + actions: + comment: + message: "@{{author}}, this pull request is now in conflict and requires a rebase." + label: + add: + - needs-rebase + + - name: remove conflict label if not needed + conditions: + - -conflict + actions: + label: + remove: + - needs-rebase