Skip to content

Commit

Permalink
Disable "Require branches to be up-to-date" for branch protections
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Apr 16, 2024
1 parent a1a6e75 commit 33eb783
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/github/api/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 33eb783

Please sign in to comment.