diff --git a/.github/mergify.yml b/.github/mergify.yml index 7f7712394dd..96bce6b9a36 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -52,7 +52,15 @@ pull_request_rules: - label=merge+no rebase - '#approved-reviews-by>=2' - '#changes-requested-reviews-by=0' - - '#check-failure=0' + # oy + # lifted these from branch protection imports + - check-success=fourmolu + - check-success=hlint + - check-success=Meta checks + - check-success=Doctest Cabal + - check-success=Validate post job + - check-success=Bootstrap post job + - 'check-success=docs/readthedocs.org:cabal' # rebase+merge strategy - actions: @@ -65,7 +73,6 @@ pull_request_rules: - label=merge delay passed - '#approved-reviews-by>=2' - '-label~=^blocked:' - - '#check-failure=0' # merge+squash strategy - actions: @@ -78,7 +85,10 @@ pull_request_rules: - label=merge delay passed - '#approved-reviews-by>=2' - '-label~=^blocked:' - - '#check-failure=0' + # unlike the others, we need to force this one to be up to date + # because it's intended for when Mergify doesn't have permission + # to rebase + - '#commits-behind=0' # merge+no rebase strategy - actions: @@ -91,11 +101,6 @@ pull_request_rules: - label=merge delay passed - '#approved-reviews-by>=2' - '-label~=^blocked:' - - '#check-failure=0' - # unlike the others, we need to force this one to be up to date - # because it's intended for when Mergify doesn't have permission - # to rebase - - '#commits-behind=0' # merge strategy for release branches - actions: @@ -108,7 +113,6 @@ pull_request_rules: - -body~=backport - '#approved-reviews-by>=2' - '-label~=^blocked:' - - '#check-failure=0' # merge+squash strategy for release branches - actions: @@ -121,7 +125,6 @@ pull_request_rules: - -body~=backport - '#approved-reviews-by>=2' - '-label~=^blocked:' - - '#check-failure=0' # merge strategy for backports: require 1 approver instead of 2 - actions: @@ -134,7 +137,6 @@ pull_request_rules: - body~=backport - '#approved-reviews-by>=1' - '-label~=^blocked:' - - '#check-failure=0' # merge+squash strategy for backports: require 1 approver instead of 2 - actions: @@ -147,7 +149,6 @@ pull_request_rules: - body~=backport - '#approved-reviews-by>=1' - '-label~=^blocked:' - - '#check-failure=0' # backports should be labeled as such - actions: