Git Provider Connections

Commit files to a repository through one of your git connections

Changed on

Adds a commit on top of the branch with the files given, using the token of a connection you own, so the push has exactly the access that token has. History is never rewritten. Another user's connection answers 404.

post/git-connections/{connection_id}/repositories/{owner}/{repo}/commits

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/git-connections/{connection_id}/repositories/{owner}/{repo}/commits
  • Auth: HTTP bearer

Path parameters

connection_idinteger required

Connection ID

ownerstring required

Repository owner

repostring required

Repository name

Request body

branchstring nullable

Branch to commit to. Defaults to the repository's default branch; a branch that does not exist is created from the default branch.

messagestring required

Commit message (at most 500 bytes).

Response

Files committed

branchstring required
commit_shastring required
connection_idinteger required
file_countinteger required
repositorystring required

Changes