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.
-
-
Field Summary
Fields Modifier and Type Field Description private final NumExpidprivate final StrExpnode_idprivate final StrExpnameprivate final StrExppatternprivate final RequiredStatusChecksrequired_status_checksprivate final BoolExpenforce_adminsprivate final RequiredPullRequestReviewsrequired_pull_request_reviewsprivate final BranchRestrictionsrestrictionsprivate final BoolExprequired_linear_historyprivate final BoolExpallow_force_pushesprivate final BoolExpallow_deletionsprivate final Stringprefix
-
Method Summary
Modifier and Type Method Description final NumExpgetId()final StrExpgetNode_id()final StrExpgetName()final StrExpgetPattern()final RequiredStatusChecksgetRequired_status_checks()final BoolExpgetEnforce_admins()final RequiredPullRequestReviewsgetRequired_pull_request_reviews()final BranchRestrictionsgetRestrictions()final BoolExpgetRequired_linear_history()final BoolExpgetAllow_force_pushes()final BoolExpgetAllow_deletions()final StringgetPrefix()-
-
Method Detail
-
getNode_id
final StrExp getNode_id()
-
getPattern
final StrExp getPattern()
-
getRequired_status_checks
final RequiredStatusChecks getRequired_status_checks()
-
getEnforce_admins
final BoolExp getEnforce_admins()
-
getRequired_pull_request_reviews
final RequiredPullRequestReviews getRequired_pull_request_reviews()
-
getRestrictions
final BranchRestrictions getRestrictions()
-
getRequired_linear_history
final BoolExp getRequired_linear_history()
-
getAllow_force_pushes
final BoolExp getAllow_force_pushes()
-
getAllow_deletions
final BoolExp getAllow_deletions()
-
-
-
-