capabilities.work

Change required review rules on a branch

One step with GitHub. We can help you get access.

Get something done

Change required review rules on a branch

with GitHub · Software Construction Management

Use GitHub: its GitHub v3 REST Repos API lets you change required review rules on a branch in a single step (PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews). capabilities.work can help you get signed up and connected.

  • Can I raise the number of required approvals on a protected branch?
  • Is there a way to dismiss stale reviews automatically when new commits are pushed?
  • Could I require approval of the most recent push by someone other than the pusher?
Say it to your AI assistant
  • Require {required_approving_review_count} approving reviews to merge into {branch} of {owner}/{repo}.
  • Set require code owner reviews to {require_code_owner_reviews} on {branch} in {owner}/{repo}.
  • Turn dismiss stale reviews {dismiss_stale_reviews} for branch {branch} of {owner}/{repo}.
For your developer

PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews in GitHub v3 REST Repos API. Full spec on APIs.io.