Skip to content

Commit

Permalink
Merge pull request #82 from Kobzol/strict-status-checks
Browse files Browse the repository at this point in the history
Disable "Require branches to be up-to-date" for branch protections
  • Loading branch information
MarcoIeni authored Nov 15, 2024
2 parents dffaba4 + 33eb783 commit 15ffe3d
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 @@ -431,7 +431,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 15ffe3d

Please sign in to comment.