CreateCommitResponse
A commit written in the browser, landed.
Shape
branchRepositoryBranch
- The RepositoryBranch schema
- aheadinteger · int320–∞
- behindinteger · int320–∞
- branch_nameBranchName (string)
commitCommit
- The Commit schema
- author_emailEmail (string)
- author_namestring
- authored_atstring
- commit_shaCommitHash (string)
- committed_atstring
- committer_emailEmail (string)
- committer_namestring
- repository_idRepositoryId (string · uuid)
- short_shaShortCommitHash (string)
- titlestring
- author_avatar_urlstring or nulloptional
- committer_avatar_urlstring or nulloptional
- messagestring or nulloptional
- parent_shasarray of CommitHash (string)optional
- tagsarray of TagName (string)optional
open_merge_requestsarray of BranchMergeRequestRefThe open merge requests proposing this branch — one per target branch at most. A commit to the branch updates each of them.
- The BranchMergeRequestRef schema
- iidMergeRequestId (integer · int64)The merge request's number in its repository.
- target_branchBranchName (string)Where it proposes to merge the branch.
- protectedbooleanA branch rule protects this branch.
- repository_idRepositoryId (string · uuid)
- viewer_can_pushbooleanWhether the caller may push to this branch — the same verdict a
git pushor a commit written in the browser gets.falsefor someone not signed in. - push_refusalstring or nulloptionalWhy the caller may not push here, in a sentence to show them. Absent when they may.
- branch_createdbooleanThe commit created
branch(fromstart_branch, or as a repository's first commit). commitCommit
- The Commit schema
- author_emailEmail (string)
- author_namestring
- authored_atstring
- commit_shaCommitHash (string)
- committed_atstring
- committer_emailEmail (string)
- committer_namestring
- repository_idRepositoryId (string · uuid)
- short_shaShortCommitHash (string)
- titlestring
- author_avatar_urlstring or nulloptional
- committer_avatar_urlstring or nulloptional
- messagestring or nulloptional
- parent_shasarray of CommitHash (string)optional
- tagsarray of TagName (string)optional
Example
Synthesized example{
"branch": {
"ahead": 4,
"behind": 5,
"branch_name": "feature/region-legend",
"commit": {
"author_email": "tomas@acme.example",
"author_name": "Tomás Reyes",
"authored_at": "2026-10-08T09:50:19Z",
"commit_sha": "9199e137064ca142242a7d65acc049ba1476caca",
"committed_at": "2026-10-10T13:42:30Z",
"committer_email": "tomas@acme.example",
"committer_name": "payments-api",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"short_sha": "7cf8bfd0a5516ee752866e3645cceea0c4e4b31a",
"title": "Label every synthesized example",
"author_avatar_url": "https://gitmoap.example/acme/d013af18",
"committer_avatar_url": "https://gitmoap.example/acme/a1702a26",
"message": "Pin a page's payload to the build that rendered it",
"parent_shas": [
"e0d764418f444669c8b77ae02d50be907b251340",
"a9ca3f5682d0e8333c72de68585ba94bca469fba"
],
"tags": [
"tags-93a0",
"tags-edbe"
]
},
"open_merge_requests": [
{
"iid": 42,
"target_branch": "main"
}
],
"protected": false,
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"viewer_can_push": false,
"push_refusal": "push-refusal-2aea"
},
"branch_created": false,
"commit": {
"author_email": "lin@acme.example",
"author_name": "Lin Park",
"authored_at": "2026-10-15T04:10:37Z",
"commit_sha": "1480ec516441056a447f0e8a1107e080f9b2d192",
"committed_at": "2026-10-13T19:30:16Z",
"committer_email": "mara@acme.example",
"committer_name": "payments-api",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"short_sha": "b07a6cdbfb7b7d8c7d8b2e857354835d8af9d41d",
"title": "Stream pipeline status into the run header",
"author_avatar_url": "https://gitmoap.example/acme/9357d89b",
"committer_avatar_url": "https://gitmoap.example/acme/d7e2a0fc",
"message": "Label every synthesized example",
"parent_shas": [
"8b3667f4ceb74e6f82f426f986bc5f85990bc8a1"
],
"tags": [
"tags-0506",
"tags-2e93"
]
}
}
Graph
Used inside
No schema contains this one.
Contains
Used by
Sent by 0 operations
No operation takes it as a request body.
Returned by 1 operation