The git area has 34 methods on the client. Each takes one object of path, query and body arguments and an optional CallOptions, and returns a promise of the response body. A refused call rejects with OverlaneApiError (see the SDK index).
gitAccessClear
Clear a member’s repository role so the team role applies again
- Request:
DELETEon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/access/{repo}
gitAccessClear(args: { tenantId: string; projectId: string; repoId: string; repo: string }, options?: CallOptions): Promise<Record<string, unknown>>gitAccessList
List the members whose access is narrowed on a repository
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/access
gitAccessList(args: { tenantId: string; projectId: string; repoId: string }, options?: CallOptions): Promise<RepoAccessList>gitAccessPut
Narrow one member’s role on a repository (never above their team role)
- Request:
PUTon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/access/{repo}
gitAccessPut(args: { tenantId: string; projectId: string; repoId: string; repo: string; body: PutRepoAccessRequest }, options?: CallOptions): Promise<RepoAccessEntry>gitBranchesCreate
Create a branch
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/branches
gitBranchesCreate(args: { tenantId: string; projectId: string; repoId: string; body: CreateBranchRequest }, options?: CallOptions): Promise<Record<string, unknown>>gitBranchesDelete
Delete a branch
- Request:
DELETEon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/branches/{repo}
gitBranchesDelete(args: { tenantId: string; projectId: string; repoId: string; repo: string }, options?: CallOptions): Promise<Record<string, unknown>>gitBranchesList
List a repository’s branches
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/branches
gitBranchesList(args: { tenantId: string; projectId: string; repoId: string }, options?: CallOptions): Promise<BranchListResponse>gitCommitDiff
Read a commit’s full diff against its first parent
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/commits/{repo}/diff
gitCommitDiff(args: { tenantId: string; projectId: string; repoId: string; repo: string }, options?: CallOptions): Promise<CommitDiffResponse>gitCompare
Read the full diff between two refs (base…head)
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/compare
gitCompare(args: { tenantId: string; projectId: string; repoId: string }, options?: CallOptions): Promise<DiffResponse>gitDiffFile
Read one file’s diff in full, including a large file the listing did not show
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/diff/file
gitDiffFile(args: { tenantId: string; projectId: string; repoId: string }, options?: CallOptions): Promise<Record<string, unknown>>gitEventsList
A repository’s git events
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/events
gitEventsList(args: { tenantId: string; projectId: string; repoId: string }, options?: CallOptions): Promise<Record<string, unknown>>gitProtectionGet
Read a repository’s branch protection
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/protection
gitProtectionGet(args: { tenantId: string; projectId: string; repoId: string }, options?: CallOptions): Promise<Record<string, unknown>>gitProtectionPut
Set a repository’s branch protection (policy class)
- Request:
PUTon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/protection - Needs an approval for agents: class
policy_change
gitProtectionPut(args: { tenantId: string; projectId: string; repoId: string; body: PutProtectionRequest }, options?: CallOptions): Promise<BranchProtection>gitPullClose
Close a pull request
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/pulls/{repo}/close
gitPullClose(args: { tenantId: string; projectId: string; repoId: string; repo: string; body?: Record<string, unknown> }, options?: CallOptions): Promise<Record<string, unknown>>gitPullFiles
Read a pull request’s full diff
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/pulls/{repo}/files
gitPullFiles(args: { tenantId: string; projectId: string; repoId: string; repo: string }, options?: CallOptions): Promise<PullFilesResponse>gitPullGet
Read one pull request
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/pulls/{repo}
gitPullGet(args: { tenantId: string; projectId: string; repoId: string; repo: string }, options?: CallOptions): Promise<PullStatus>gitPullMerge
Merge a pull request
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/pulls/{repo}/merge
gitPullMerge(args: { tenantId: string; projectId: string; repoId: string; repo: string; body: MergeRequest }, options?: CallOptions): Promise<MergeResult>gitPullReview
Review a pull request
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/pulls/{repo}/reviews
gitPullReview(args: { tenantId: string; projectId: string; repoId: string; repo: string; body: SubmitReviewRequest }, options?: CallOptions): Promise<PullReview>gitPullsList
List pull requests
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/pulls
gitPullsList(args: { tenantId: string; projectId: string; repoId: string }, options?: CallOptions): Promise<PullListResponse>gitPullsOpen
Open a pull request
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/pulls
gitPullsOpen(args: { tenantId: string; projectId: string; repoId: string; body: OpenPullRequest }, options?: CallOptions): Promise<PullRequest>gitPush
Push a commit to a branch through the API
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/push
gitPush(args: { tenantId: string; projectId: string; repoId: string; body: PushRequest }, options?: CallOptions): Promise<PushResult>gitPushCheck
Check what a push would do without writing
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/push-check
gitPushCheck(args: { tenantId: string; projectId: string; repoId: string; body: PushCheckRequest }, options?: CallOptions): Promise<Record<string, unknown>>gitRepoDelete
Delete a repository (deletion class)
- Request:
DELETEon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId} - Needs an approval for agents: class
deletion
gitRepoDelete(args: { tenantId: string; projectId: string; repoId: string }, options?: CallOptions): Promise<DeleteRepoResponse>gitRepoGet
Read one repository
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}
gitRepoGet(args: { tenantId: string; projectId: string; repoId: string }, options?: CallOptions): Promise<Repo>gitRepoIndexGet
Index status for a repository
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/index
gitRepoIndexGet(args: { tenantId: string; projectId: string; repoId: string }, options?: CallOptions): Promise<Record<string, unknown>>gitRepoIndexRun
Queue an index run for a repository
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/index
gitRepoIndexRun(args: { tenantId: string; projectId: string; repoId: string; body?: Record<string, unknown> }, options?: CallOptions): Promise<Record<string, unknown>>gitRepoMirror
Set the mirror direction and single writer for a repository (policy class)
- Request:
PUTon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/mirror - Needs an approval for agents: class
policy_change
gitRepoMirror(args: { tenantId: string; projectId: string; repoId: string; body?: Record<string, unknown> }, options?: CallOptions): Promise<Record<string, unknown>>gitReposCapability
What the native git host offers on this deployment
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/capability
gitReposCapability(args: { tenantId: string; projectId: string }, options?: CallOptions): Promise<NativeRepoCapability>gitReposCreate
Create a native repository
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/repos
gitReposCreate(args: { tenantId: string; projectId: string; body: CreateRepoRequest }, options?: CallOptions): Promise<Repo>gitReposImport
Import a repository from another host into a native one
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/repos/import
gitReposImport(args: { tenantId: string; projectId: string; body: ImportRepoRequest }, options?: CallOptions): Promise<Repo>gitReposList
List a project’s native repositories
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos
gitReposList(args: { tenantId: string; projectId: string }, options?: CallOptions): Promise<RepoListResponse>gitRepoSync
Sync a mirrored repository now
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/sync
gitRepoSync(args: { tenantId: string; projectId: string; repoId: string; body?: Record<string, unknown> }, options?: CallOptions): Promise<Record<string, unknown>>gitTokensList
List a repository’s git tokens (never the secrets)
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/tokens
gitTokensList(args: { tenantId: string; projectId: string; repoId: string }, options?: CallOptions): Promise<Record<string, unknown>>gitTokensMint
Mint a git token; the secret is shown once
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/tokens
gitTokensMint(args: { tenantId: string; projectId: string; repoId: string; body: MintGitTokenRequest }, options?: CallOptions): Promise<GitTokenGrant>gitTokensRevoke
Revoke a git token
- Request:
DELETEon/v1/tenants/{tenantId}/projects/{projectId}/repos/{repoId}/tokens/{repo}
gitTokensRevoke(args: { tenantId: string; projectId: string; repoId: string; repo: string }, options?: CallOptions): Promise<Record<string, unknown>>