Github API - Test Config

GET /repos/{owner}/{repo}/branches/{branch}
repos

Get a branch

Arguments
key owner

owner [scalar]

The account owner of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key repo

repo [scalar]

The name of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key branch

branch [scalar]

The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

API:
Github Open API
(version: 1.1.4)

Returns
200 application/json branch-with-protection

branch-with-protection [object]

Branch With Protection

Attributes
_links 1934

commit commit

name string

pattern string

protected boolean

protection branch-protection

protection_url string

required_approving_review_count integer

API:
Github Open API
(version: 1.1.4)
301 moved_permanently

moved_permanently [scalar]

Moved permanently

API:
Github Open API
(version: 1.1.4)
404 not_found

not_found [scalar]

Resource not found

API:
Github Open API
(version: 1.1.4)
API:
Github Open API
(version: 1.1.4)