Skip to main content

branch_restrictions

Overview

Namebranch_restrictions
TypeResource
Idgithub.repos.branch_restrictions

Fields

NameDatatype
appsarray
apps_urlstring
teamsarray
teams_urlstring
urlstring
usersarray
users_urlstring

Methods

NameAccessible byRequired ParamsDescription
get_access_restrictionsSELECTbranch, owner, repoProtected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see GitHub's products in the GitHub Help documentation.

Lists who has access to this protected branch.

Note: Users, apps, and teams restrictions are only available for organization-owned repositories.
delete_access_restrictionsDELETEbranch, owner, repoProtected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see GitHub's products in the GitHub Help documentation.

Disables the ability to restrict who can push to this branch.