From 33eb783e77a23f2a7fd4fa8c8ea73b8c5ff11aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Tue, 16 Apr 2024 18:36:16 +0200 Subject: [PATCH] Disable "Require branches to be up-to-date" for branch protections --- src/github/api/write.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/github/api/write.rs b/src/github/api/write.rs index 1fdd5e9..d37c686 100644 --- a/src/github/api/write.rs +++ b/src/github/api/write.rs @@ -429,7 +429,9 @@ impl GitHubWrite { {id_field}: $id, pattern: $pattern, requiresStatusChecks: true, - requiredStatusCheckContexts: $contexts, + requiredStatusCheckContexts: $contexts, + # Disable 'Require branch to be up-to-date before merging' + requiresStrictStatusChecks: false, isAdminEnforced: true, requiredApprovingReviewCount: $reviewCount, dismissesStaleReviews: $dismissStale,