BranchProtection¶
-
class
github.BranchProtection.
BranchProtection
¶ This class represents Branch Protection. The reference can be found here https://docs.github.com/en/rest/reference/repos#get-branch-protection
-
url
¶ Type: string
-
required_status_checks
¶ Type: github.RequiredStatusChecks.RequiredStatusChecks
-
enforce_admins
¶ Type: bool
-
required_pull_request_reviews
¶ Type: github.RequiredPullRequestReviews.RequiredPullRequestReviews
-
get_user_push_restrictions
()¶ Return type: github.PaginatedList.PaginatedList
ofgithub.NamedUser.NamedUser
-
get_team_push_restrictions
()¶ Return type: github.PaginatedList.PaginatedList
ofgithub.Team.Team
-