ProtectedBranch

A repository protected branch.

Implements

Connections

pushAllowances (PushAllowanceConnection)
A list push allowances for this protected branch.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

reviewDismissalAllowances (ReviewDismissalAllowanceConnection)
A list review dismissal allowances for this protected branch.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

Fields

creator (Actor)

The actor who created this protected branch.

hasDismissableStaleReviews (Boolean!)

Will new commits pushed to this branch dismiss pull request review approvals.

hasRequiredReviews (Boolean!)

Are reviews required to update this branch.

hasRequiredStatusChecks (Boolean!)

Are status checks required to update this branch.

hasRestrictedPushes (Boolean!)

Is pushing to this branch restricted.

hasRestrictedReviewDismissals (Boolean!)

Is dismissal of pull request reviews restricted.

hasStrictRequiredStatusChecks (Boolean!)

Are branches required to be up to date before merging.

isAdminEnforced (Boolean!)

Can admins overwrite branch protection.

name (String!)

Identifies the name of the protected branch.

repository (Repository!)

The repository associated with this protected branch.

requiredStatusCheckContexts ([String])

List of required status check contexts that must pass for commits to be accepted to this branch.