Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/actionify/src/deps/octokit-types.ts>BranchProtectionRule

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
interface BranchProtectionRule
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

id: number
repository_id: number
name: string
created_at: string
updated_at: string
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
optional
create_protected: BranchProtectionRuleBoolean
allow_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