PageRepoVcCommit
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/{id}/page |
load |
Commit metadata and the path serving its file diff |
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:
page_repo_vc_commit, err := client.PageRepoVcCommit(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(page_repo_vc_commit)
Lua
Construct client as shown in the Lua setup, then call the operations:
local page_repo_vc_commit, err = client:PageRepoVcCommit():load({ id = "example_id", organization_id = "example", repo_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$page_repo_vc_commit = $client->PageRepoVcCommit()->load(["id" => "example_id", "organization_id" => "example", "repo_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
page_repo_vc_commit = client.PageRepoVcCommit().load({"id": "example_id", "organization_id": "example", "repo_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
page_repo_vc_commit = client.PageRepoVcCommit.load({ "id" => "example_id", "organization_id" => "example", "repo_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const page_repo_vc_commit = await client.PageRepoVcCommit().load({ id: "example_id", organization_id: "example", repo_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
commit |
any |
Yes | Commit |
diff_path |
string |
Yes | Fingerprinted path serving this commit range's file diff. |
id |
string |
No | Id |
load
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/commits/{id}/page
Operation ID: api_v1_org_repo_vcs_commit_page.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
repo_slug |
path |
string |
Yes | |
id |
path |
string |
Yes | |
parent |
query |
string |
No | Override the base commit (defaults to the commit's first parent) |
Responses
200: Commit metadata and the path serving its file diff
application/json
| Property | Type | Required | Description |
|---|---|---|---|
commit |
object or null |
Yes | |
diff_path |
string |
Yes | Fingerprinted path serving this commit range's file diff. Rails builds it; fetch it as given rather than assembling one. |