getRefCommit
get commit info
Path Parameters
- owner required
The owner of the repository, generally called "username". The name is not case sensitive.
- repo required
repository name, the name is not case sensitive
- ref required
ref
Header Parameters
- Authorization required
Oauth2 token or private token (needs to start with Bearer plus a space)
- 200
- 404
- 500
- responseBody
success
404 not found
internal error
- application/json
- Schema
- Example (from schema)
Schema
- name string
ref name
commit object
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 string
commit sha value
parents object[] required
Array [sha stringcommit sha value
]stats object required
additions integerdeletions integertotal integer
{
"name": "string",
"commit": {
"committer": {
"name": "string",
"email": "string",
"date": "string"
},
"author": {
"name": "string",
"email": "string",
"date": "string"
},
"message": "string"
},
"sha": "string",
"parents": [
{
"sha": "string"
}
],
"stats": {
"additions": 0,
"deletions": 0,
"total": 0
}
}