capabilities.work

Edit a branch protection rule

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

Get something done

Edit a branch protection rule

with Gitea · Software Construction Management

Use Gitea: its Gitea Repository API lets you edit a branch protection rule in a single step (PATCH /repos/{owner}/{repo}/branch_protections/{name}). capabilities.work can help you get signed up and connected.

  • Can I change the required approvals on an existing protection rule?
  • How do I add users to the push allowlist of a protected branch that's already set up?
Say it to your AI assistant
  • Change protection rule {name} in {owner}/{repo} to require {required_approvals} approvals.
  • Allow {push_whitelist_usernames} to push to protected rule {name} in {owner}/{repo}.
For your developer

PATCH /repos/{owner}/{repo}/branch_protections/{name} in Gitea Repository API. Full spec on APIs.io.