Class BranchProtectionRule

  • All Implemented Interfaces:

    
    public final class BranchProtectionRule
    extends Context
                        

    Represents a branch protection rule in GitHub Actions workflows.

    Provides access to branch protection rule settings including required status checks, administrator enforcement, pull request review requirements, and other protection policies. Available in GitHub workflow contexts when branch protection rules are defined for the repository.