Skip to main content
POST
/
{org}
/
{repo}
/
commits
Create commit
curl --request POST \
  --url https://staging.depot.mesa.dev/{org}/{repo}/commits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "branch": "<string>",
  "message": "<string>",
  "author": {
    "name": "<string>",
    "email": "[email protected]",
    "date": "<string>"
  },
  "files": [
    {
      "path": "<string>",
      "content": "<string>",
      "encoding": "utf-8",
      "action": "<string>"
    }
  ],
  "base_sha": "<string>"
}
'
{
  "sha": "<string>",
  "branch": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org
string
required
Minimum string length: 1
repo
string
required
Minimum string length: 1

Body

application/json
branch
string
required
Minimum string length: 1
message
string
required
Minimum string length: 1
author
object
required
files
object[]
required
base_sha
string

Response

Commit created

sha
string
required
branch
string
required
message
string
required