import { type BranchProtectionRule } from "https://deno.land/x/actionify@0.3.0/src/deps/octokit-types.ts";
The branch protection rule. Includes a name
and all the branch protection settings applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of off
, non_admins
, or everyone
. Actor and build lists are arrays of strings.
Properties
pull_request_reviews_enforcement_level: BranchProtectionRuleEnforcementLevel
required_approving_review_count: BranchProtectionRuleNumber
dismiss_stale_reviews_on_push: BranchProtectionRuleBoolean
require_code_owner_review: BranchProtectionRuleBoolean
authorized_dismissal_actors_only: BranchProtectionRuleBoolean
ignore_approvals_from_contributors: BranchProtectionRuleBoolean
required_status_checks: BranchProtectionRuleArray
required_status_checks_enforcement_level: BranchProtectionRuleEnforcementLevel
strict_required_status_checks_policy: BranchProtectionRuleBoolean
signature_requirement_enforcement_level: BranchProtectionRuleEnforcementLevel
linear_history_requirement_enforcement_level: BranchProtectionRuleEnforcementLevel
admin_enforced: BranchProtectionRuleBoolean
optional
create_protected: BranchProtectionRuleBooleanallow_force_pushes_enforcement_level: BranchProtectionRuleEnforcementLevel
allow_deletions_enforcement_level: BranchProtectionRuleEnforcementLevel
merge_queue_enforcement_level: BranchProtectionRuleEnforcementLevel
required_deployments_enforcement_level: BranchProtectionRuleEnforcementLevel
required_conversation_resolution_level: BranchProtectionRuleEnforcementLevel
authorized_actors_only: BranchProtectionRuleBoolean
authorized_actor_names: BranchProtectionRuleArray