capabilities.work

Create a branch protection rule

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

Get something done

Create a branch protection rule

with Gitea · Software Construction Management

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

  • How do I protect the main branch so nobody can force-push to it?
  • Can a protection rule require a number of approvals and passing status checks before merging?
  • Is it possible to require signed commits on a protected branch?
Say it to your AI assistant
  • Protect branch {branch_name} in {owner}/{repo}.
  • Create protection rule {rule_name} in {owner}/{repo} requiring {required_approvals} approvals.
  • Protect {branch_name} in {owner}/{repo} and require status checks {status_check_contexts}.
For your developer

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