Protected 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.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://api.github.com/repos///branches//protection/required_status_checks/contexts'
Response Response Example
200 - default
["continuous-integration/travis-ci"]
Request
Path Params
owner
stringÂ
required
The account owner of the repository. The name is not case sensitive.
repo
stringÂ
required
The name of the repository. The name is not case sensitive.
branch
stringÂ
required
The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.