API

RepoVcCommit

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/commits list First parent commit history

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

repo_vc_commits, err := client.RepoVcCommit(nil).List(map[string]any{"organization_id": "example", "repo_id": "example", "ref": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(repo_vc_commits)

Lua

Construct client as shown in the Lua setup, then call the operations:

local repo_vc_commits, err = client:RepoVcCommit():list({ organization_id = "example", repo_id = "example", ref = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$repo_vc_commits = $client->RepoVcCommit()->list(["organization_id" => "example", "repo_id" => "example", "ref" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

repo_vc_commits = client.RepoVcCommit().list({"organization_id": "example", "repo_id": "example", "ref": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

repo_vc_commits = client.RepoVcCommit.list({ "organization_id" => "example", "repo_id" => "example", "ref" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const repo_vc_commits = await client.RepoVcCommit().list({ organization_id: "example", repo_id: "example", ref: "example" })

Fields

Field Type Required Description
name string Yes Name
target_commit_id string Yes Target Commit Id

list

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/commits

Operation ID: api_v1_org_repo_vcs_commits.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
ref query string Yes
limit query integer No
offset query integer No
q query string No Filter by commit message, author, or SHA
page query integer No 1-based page number. Prefer this over offset.
path query string No

Responses

200: First parent commit history

application/json

Property Type Required Description
branches array of object Yes
branches[].name string Yes
branches[].target_commit_id string Yes
commits array of object Yes
commits[].actor_avatar_url string (uri) No
commits[].actor_email string No
commits[].actor_identity object or null No
commits[].actor_name string No The person the history line names, the Change lander when the commit has landed, otherwise the commit author.
commits[].actor_verb enum: landed, committed No The verb that belongs next to the actor. landed when this commit was observed as the target bookmark's tip.
commits[].agent_context object or null No
commits[].author_avatar_url string (uri) No
commits[].author_date string (date-time) No
commits[].author_date_label string No
commits[].author_email string No
commits[].author_identity object or null No
commits[].author_name string No
commits[].change object or null No
commits[].ci_status enum: queued, running, succeeded, failed, canceled No
commits[].committed_on_key string (date) No
commits[].committed_on_label string No
commits[].committer_date string (date-time) No
commits[].committer_date_label string No
commits[].committer_name string No
commits[].deployments object or null No
commits[].github object or null No
commits[].id string Yes
commits[].landed_at string (date-time) No
commits[].message string No
commits[].parent_count_label string No
commits[].parent_ids array of string No
commits[].summary string No
default_branch string Yes The repository's authoritative trunk, resolved server-side.
has_more boolean Yes
limit integer Yes
offset integer Yes
page_count_label string Yes
pagination object Yes
pagination.last integer Yes
pagination.limit integer Yes
pagination.next integer No
pagination.page integer Yes
pagination.previous integer No
protected_bookmarks array of string Yes
query string Yes
ref_name string Yes The ref this page walked, the requested ref, or the resolved trunk when the request named none.
search_truncated boolean Yes True when q stopped at the search scan bound rather than at the root of the repository, so "no matches" means "none this far back".
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway