Skip to content

POST /v1/sessions/{session_id}/git/commit

POST
/v1/sessions/{session_id}/git/commit
curl --request POST \
--url https://app.everruns.com/api/v1/sessions/example/git/commit \
--header 'Content-Type: application/json' \
--data '{ "author_email": "[email protected]", "author_name": "Support Agent", "branch": "main", "message": "feat: draft migration plan" }'
session_id
required
string
Media type application/json

Request to create a commit

object
author_email

Author email (defaults to “[email protected]”)

string | null
author_name

Author name (defaults to “Agent”)

string | null
Example
Support Agent
branch

Branch name (defaults to “refs/heads/main”); short names like “main” are normalized

string | null
Example
main
message
required

Commit message

string
Example
feat: draft migration plan

Commit created

Media type application/json

Result of a commit operation

object
objects_created
required
integer
oid
required
string
tree_oid
required
string
Example generated
{
"objects_created": 1,
"oid": "example",
"tree_oid": "example"
}

Invalid request

Session not found