ChangeGitCommitIdentity
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/git_commit_identities |
create |
Exact patchset identities and explicit unmatched Git commits; no native conversion |
GET |
/api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/git_commit_identities/{id} |
load |
Exact persisted Git patchset in the authorized physical repository |
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:
change_git_commit_identity, err := client.ChangeGitCommitIdentity(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(change_git_commit_identity)
created, err := client.ChangeGitCommitIdentity(nil).Create(map[string]any{"organization_id": "example", "repo_id": "example", "git_commit_ids": []any{}}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local change_git_commit_identity, err = client:ChangeGitCommitIdentity():load({ id = "example_id", organization_id = "example", repo_id = "example" })
local created, err = client:ChangeGitCommitIdentity():create({ organization_id = "example", repo_id = "example", git_commit_ids = {} })
PHP
Construct client as shown in the PHP setup, then call the operations:
$change_git_commit_identity = $client->ChangeGitCommitIdentity()->load(["id" => "example_id", "organization_id" => "example", "repo_id" => "example"]);
$created = $client->ChangeGitCommitIdentity()->create(["organization_id" => "example", "repo_id" => "example", "git_commit_ids" => []]);
Python
Construct client as shown in the Python setup, then call the operations:
change_git_commit_identity = client.ChangeGitCommitIdentity().load({"id": "example_id", "organization_id": "example", "repo_id": "example"})
created = client.ChangeGitCommitIdentity().create({ "organization_id": "example", "repo_id": "example", "git_commit_ids": [] })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
change_git_commit_identity = client.ChangeGitCommitIdentity.load({ "id" => "example_id", "organization_id" => "example", "repo_id" => "example" })
created = client.ChangeGitCommitIdentity.create({ "organization_id" => "example", "repo_id" => "example", "git_commit_ids" => [] })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const change_git_commit_identity = await client.ChangeGitCommitIdentity().load({ id: "example_id", organization_id: "example", repo_id: "example" })
const created = await client.ChangeGitCommitIdentity().create({ organization_id: "example", repo_id: "example", git_commit_ids: [] })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
change_id |
string |
Yes | Change Id |
change_number |
integer |
Yes | Change Number |
git_commit_id |
string |
Yes | Git Commit Id |
git_commit_ids |
array |
Yes | Git Commit Ids |
id |
string |
No | Id |
identities |
array |
Yes | Identities |
missing_git_commit_ids |
array |
Yes | Missing Git Commit Ids |
patchset_number |
integer |
Yes | Patchset Number |
create
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/git_commit_identities
Operation ID: api_v1_git_commit_identities.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
repo_slug |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
git_commit_ids |
array of string |
Yes |
Responses
200: Exact patchset identities and explicit unmatched Git commits; no native conversion
application/json
| Property | Type | Required | Description |
|---|---|---|---|
identities |
array of object |
Yes | |
identities[].change_id |
string |
Yes | |
identities[].change_number |
integer |
Yes | |
identities[].git_commit_id |
string |
Yes | |
identities[].patchset_number |
integer |
Yes | |
missing_git_commit_ids |
array of string |
Yes |
401: Unauthorized
403: Forbidden
404: Repository unavailable to the caller
409: Ambiguous association or retained revision unavailable
422: Invalid or oversized Git identity selection
502: Bad gateway
load
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/git_commit_identities/{id}
Operation ID: get_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_git_commit_identities_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
repo_slug |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Exact persisted Git patchset in the authorized physical repository
application/json
| Property | Type | Required | Description |
|---|---|---|---|
change_id |
string |
Yes | |
change_number |
integer |
Yes | |
git_commit_id |
string |
Yes | |
patchset_number |
integer |
Yes |