committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.curl --location --request DELETE 'https://api.github.com/repos///contents/' \
--header 'Content-Type: application/json' \
--data-raw '{
"committer": {
"email": "octocat@github.com",
"name": "Monalisa Octocat"
},
"message": "my commit message",
"sha": "329688480d39049927147c162b9d2deaf885005f"
}'
{
"commit": {
"author": {
"date": "string",
"email": "string",
"name": "string"
},
"committer": {
"date": "string",
"email": "string",
"name": "string"
},
"html_url": "string",
"message": "string",
"node_id": "string",
"parents": [
{
"html_url": "string",
"sha": "string",
"url": "string"
}
],
"sha": "string",
"tree": {
"sha": "string",
"url": "string"
},
"url": "string",
"verification": {
"payload": "string",
"reason": "string",
"signature": "string",
"verified": true
}
},
"content": {
"_links": {
"git": "string",
"html": "string",
"self": "string"
},
"download_url": "string",
"git_url": "string",
"html_url": "string",
"name": "string",
"path": "string",
"sha": "string",
"size": 0,
"type": "string",
"url": "string"
}
}
master
)