Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function configureBranchProtection
import { configureBranchProtection } from "https://deno.land/x/fathym_everything_as_code@v0.1.63-integration/src/octokit/configureBranchProtection.ts";

Configure the branch protection rules for a branch in a repository.

Parameters

octokit: Octokit
owner: string
repo: string
branch: string
defaultBranch: boolean
requireReviews: boolean
requiredStatusChecks: string[]
restrictionTeams: string[]
lockBranch: boolean
username: string

Returns

Promise<void>