Git

List source commits

Read source commit history for a branch. Each commit includes parentShas in Git order. Use the newest commit SHA as expectedHeadSha when you edit that branch.

get/v1/spaces/{spaceId}/source/commits

Request

  • Base URL: https://api.spacefast.com
  • URL: https://api.spacefast.com/v1/spaces/{spaceId}/source/commits
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.spacefast.com/v1/auth/oauth2/authorize, token URL https://api.spacefast.com/v1/auth/oauth2/token; client credentials, token URL https://api.spacefast.com/v1/auth/oauth2/token, scopes: spaces:read)

Path parameters

spaceIdstring required

Query parameters

connectionType'connected' | 'hosted'

Which of the space's repository connections to act on: connected for the repository you linked from a provider, hosted for the one Spacefast hosts and you push to.

branchstring

Branch to read history from. Defaults to the repository's default branch.

pathstring

Return only commits that touched this path.

cursorstring

Opaque cursor from the previous page's pagination.nextCursor.

limitinteger

Maximum commits to return.

ephemeralstring

Resolve branch as a short-lived branch from POST /v1/spaces/{spaceId}/source/ephemeral-branch rather than an ordinary one.

Response

Response for status 200

$schemastring uri

Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.

Changes

No recorded changes to this operation across all 1 revision of this API.