getBranch
Get branch information
Path Parameters
- owner required
The owner of the repository is generally called "username". The name is not case sensitive.
- repo required
repository name. The name is not case sensitive.
- branch required
Branch name, cannot contain wildcard characters.
Header Parameters
- Authorization required
Oauth2 token or private token (needs to start with Bearer plus a space)
- 200
- 404
- responseBody
success
404 not found
- application/json
- Schema
Schema
- name string
branch name.
commit object
Commit ID
committer object required
commitor. Default value - The currently authenticated user.
name stringThe name of the commitor. If you omit this field, you will receive a 422 status code.
email stringcommitor's email. If you omit the email, you will receive a 422 status code.
date stringauthor object required
commitor. Default value - The currently authenticated user.
name stringThe name of the commitor. If you omit this field, you will receive a 422 status code
email stringcommitor's email. If you omit the email, you will receive a 422 status code.
date stringmessage stringcommit message
sha stringcommit sha value.
parents object[] required
Array [sha stringcommit sha value.
]