Grovedock speaks gRPC (HTTP/2, and gRPC-Web for browsers). The gd.v1 package is stable: it changes only by adding. Generate a client for any language from the files below; the SDKs wrap the read calls for Python, TypeScript and Go.
Calls to a server that hosts many repositories name one with the x-gd-repo: OWNER/NAME header. Every call takes a bearer token in authorization when the server requires one.
Source
Tier-agnostic object service. Served identically by server, cache and daemon.
| Call | Request | Response | What it does |
Get | IdList | stream ObjectPayload | |
Put | stream ObjectPayload | PutObjectsResponse | |
Missing | IdList | IdList | Returns the subset of ids the tier cannot serve. |
| Call | Request | Response | What it does |
Create | CreateChangesetRequest | ChangesetInfo | |
Get | ResolveRequest | ChangesetInfo | |
Refs name changesets: branches, and tags under tags/ (tags/v1.2.0). A tag is made once (CompareAndSwap from nothing) and never moves: swapping an existing tag fails, and nothing lands on one. Git sees them as refs/tags/*.
| Call | Request | Response | What it does |
Get | RefName | RefValue | |
CompareAndSwap | CasRequest | CasResponse | |
List | Empty | RefList | |
Server-side rebase + lock-free compare-and-swap of a ref.
| Call | Request | Response | What it does |
Land | LandRequest | LandResponse | |
| Call | Request | Response | What it does |
Log | LogRequest | stream ChangesetInfo | |
Blame | BlameRequest | BlameResponse | |
| Call | Request | Response | What it does |
Diff | DiffRequest | DiffResponse | |
| Call | Request | Response | What it does |
MergeBase | MergeBaseRequest | MergeBaseResponse | |
| Call | Request | Response | What it does |
SearchCode | SearchCodeRequest | SearchCodeResponse | |
FindSymbol | FindSymbolRequest | FindSymbolResponse | |
| Call | Request | Response | What it does |
ListDir | BrowseRequest | ListDirResponse | |
ReadFile | BrowseRequest | ReadFileResponse | |
Find | FindRequest | FindResponse | |
Checkout | CheckoutRequest | stream CheckoutPiece | Path-scoped checkout: only files the caller may read. Used by principals with restricted read access, who may not read objects by id. |
| Call | Request | Response | What it does |
WhoAmI | Empty | WhoAmIResponse | |
| Call | Request | Response | What it does |
Lock | LockRequest | LockInfo | |
Unlock | UnlockRequest | Empty | |
List | ListLocksRequest | LockList | |
Source
| Call | Request | Response | What it does |
StartImport | StartImportRequest | Import | For an owner you administer (your account, or an organisation). The repository is made at once; history, pull requests and issues follow. |
GetImport | ImportRef | Import | |
ListImports | Empty | ListImportsResponse | Your imports, newest first. |
Source
| Call | Request | Response | What it does |
Flow | FlowRequest | FlowResponse | For administrators of the organisation. |
Source
| Call | Request | Response | What it does |
ListIssues | ListIssuesRequest | ListIssuesResponse | |
IssueFacets | RepositoryRef | Facets | Views: open, mine, unassigned, fixing, authored, closed. |
GetIssue | IssueRef | Issue | |
CreateIssue | CreateIssueRequest | Issue | |
UpdateIssue | UpdateIssueRequest | Issue | |
ListIssueComments | IssueRef | ListCommentsResponse | |
AddIssueComment | AddIssueCommentRequest | Comment | |
EditIssueComment | EditCommentRequest | Comment | |
ListLabels | RepositoryRef | ListLabelsResponse | Labels: every label in use or described, with its colour, description and counts. |
SetLabel | SetLabelRequest | Label | Describes a label (colour, description), or renames it everywhere it’s used. |
DeleteLabel | LabelRef | Empty | Removes a label from every issue and change request. |
ListMilestones | ListMilestonesRequest | ListMilestonesResponse | Milestones: a goal with a date, and the issues and change requests planned for it. |
CreateMilestone | Milestone | Milestone | |
UpdateMilestone | UpdateMilestoneRequest | Milestone | |
DeleteMilestone | MilestoneRef | Empty | Its issues and change requests keep everything but the milestone. |
UploadImage | UploadImageRequest | ImageRef | Images for comments and descriptions (PNG, JPEG, GIF or WebP, up to 10 MB). Anyone who can comment can upload one; anyone who can read the repository can see it. |
GetImage | ImageRef | Image | |
FetchImage | FetchImageRequest | Image | An image on another site that Markdown shows (a README’s badges), fetched by the server so that site never learns who reads the text. Signed-in callers only; up to 5 MB. |
Source
| Call | Request | Response | What it does |
SetLandWhenReady | SetLandWhenReadyRequest | ChangeRequest | Lands the change request by itself once nothing blocks it (reviews, checks, conflicts), as the caller. A new version keeps it on; landing, closing or turning it off ends it. |
Source
| Call | Request | Response | What it does |
GetReviewPacket | ChangeRequestRef | ReviewPacket | |
Source
| Call | Request | Response | What it does |
SetAgentControls | SetAgentControlsRequest | Account | |
Viewer | Empty | ViewerResponse | |
GetAccount | OrgName | Account | |
ListOrganizations | Empty | ListOrganizationsResponse | |
GetOrganization | OrgName | Organization | |
CreateOrganization | CreateOrganizationRequest | Organization | |
ListMembers | OrgName | ListMembersResponse | |
SetMember | SetMemberRequest | Member | |
ListTeams | OrgName | ListTeamsResponse | |
SetTeam | Team | Team | Creates the team, or replaces its name, description and members. |
DeleteTeam | TeamRef | Empty | |
ListRepositories | ListRepositoriesRequest | ListRepositoriesResponse | |
GetRepository | RepositoryRef | Repository | |
CreateRepository | CreateRepositoryRequest | Repository | |
UpdateRepository | UpdateRepositoryRequest | Repository | |
RenameRepository | RenameRepositoryRequest | Repository | |
DeleteRepository | DeleteRepositoryRequest | Empty | |
ListGrants | RepositoryRef | ListGrantsResponse | |
SetGrant | SetGrantRequest | Grant | |
ListTokens | Empty | ListTokensResponse | |
GetNotificationSettings | Empty | NotificationSettings | What the caller gets emailed about. |
SetNotificationSettings | NotificationSettings | NotificationSettings | |
CreateToken | CreateTokenRequest | CreateTokenResponse | |
RevokeToken | RevokeTokenRequest | Empty | |
ListWebhooks | RepositoryRef | ListWebhooksResponse | |
CreateWebhook | CreateWebhookRequest | CreateWebhookResponse | |
DeleteWebhook | WebhookRef | Empty | |
ListWebhookDeliveries | WebhookRef | ListWebhookDeliveriesResponse | |
PingWebhook | WebhookRef | WebhookDelivery | Sends a ping event now. |
LinkIdentity | LinkIdentityRequest | Empty | Lets an identity sign in as an existing account, e.g. the first administrator’s email address. Site administrators only. |
CreateInvitation | CreateInvitationRequest | CreateInvitationResponse | Invitations to an organisation: a single-use link, valid 7 days, emailed when the server sends mail. Whoever opens it and signs in joins with the role. Organisation administrators. |
ListInvitations | OrgName | ListInvitationsResponse | Invitations not yet accepted, including expired ones. |
RevokeInvitation | InvitationRef | Empty | |
GetUsage | GetUsageRequest | Usage | Plans and usage (ADR-035). An organisation’s active agents, people, storage and limits: its administrators and site administrators. |
AgentStats | AgentStatsRequest | AgentStatsResponse | How each agent of an organisation is doing: what it landed day by day, its change requests, failed checks and refused lands (organisation administrators). |
AgentActivity | AgentActivityRequest | AgentActivityResponse | What one agent did, session by session: reads, searches, lands (and refusals, with why), change requests, failed checks (organisation administrators, and the person it answers to). |
SetLimits | SetLimitsRequest | OrgLimits | Replaces an organisation’s limits (not its suspension). Site administrators only. |
SetSuspended | SetSuspendedRequest | OrgLimits | A suspended organisation can read but not write. Site administrators only. |
GetCapabilities | Empty | Capabilities | What this server offers: anyone may ask. |
GetLicense | Empty | License | The support licence this server was started with. Site administrators only. |
| Call | Request | Response | What it does |
ListChangeRequests | ListChangeRequestsRequest | ListChangeRequestsResponse | |
ChangeRequestFacets | RepositoryRef | Facets | Views: attention, open, ready, blocked, agents, mine, drafts, landed, closed. |
GetChangeRequest | ChangeRequestRef | ChangeRequest | |
CreateChangeRequest | CreateChangeRequestRequest | ChangeRequest | |
UpdateChangeRequest | UpdateChangeRequestRequest | ChangeRequest | |
ListComments | ChangeRequestRef | ListCommentsResponse | |
AddComment | AddCommentRequest | Comment | |
EditComment | EditCommentRequest | Comment | |
ResolveThread | ResolveThreadRequest | Comment | |
SubmitReview | SubmitReviewRequest | ChangeRequest | |
Land | ChangeRequestRef | LandChangeRequestResponse | |
Rebase | ChangeRequestRef | ChangeRequest | Re-applies the change on the target’s tip. Edits that do not overlap what landed since are carried over; otherwise it fails with FAILED_PRECONDITION naming the files that conflict. Approvals made on the old version stop counting when the protection says so. Replays the branch’s changes on the target’s tip. Files both changed are merged line by line; it fails only where their edits clash (see Conflicts). |
Conflicts | ChangeRequestRef | ConflictReport | Where a change request clashes with its target, file by file: the three versions, and the merge (clean, or with conflict markers where the edits clash). |
ResolveConflicts | ResolveConflictsRequest | ChangeRequest | Rebases with the clashing files settled: each given in full, or deleted. Files that merge cleanly needn’t be given. |
RevertAgent | RevertAgentRequest | RevertPlan | Undoes everything an agent landed on a branch since a time, as one change request (or, with dry_run, says what that would undo). Later changes by others to the same files are kept where they don’t overlap; where they do, the file is left as it is and listed. |
ListProtections | RepositoryRef | ListProtectionsResponse | |
SetProtection | Protection | Protection | |
DeleteProtection | ProtectionRef | Empty | |
ReportCheck | ReportCheckRequest | ChangeRequest | |
Inbox | InboxRequest | InboxResponse | |
MarkInbox | MarkInboxRequest | Empty | |
ListEvents | ListEventsRequest | ListEventsResponse | |
Source
| Call | Request | Response | What it does |
ListReleases | ListReleasesRequest | ListReleasesResponse | |
GetRelease | ReleaseRef | Release | |
CreateRelease | CreateReleaseRequest | Release | |
UpdateRelease | UpdateReleaseRequest | Release | |
DeleteRelease | ReleaseRef | Empty | The release goes; its tag stays. |
GenerateReleaseNotes | ReleaseNotesRequest | ReleaseNotes | |
AddReleaseAsset | AddReleaseAssetRequest | Release | |
DeleteReleaseAsset | DeleteReleaseAssetRequest | Release | |
ReleaseAssetUrl | ReleaseAssetRef | ReleaseAssetLink | |
ReleaseUploadUrl | ReleaseAssetRef | ReleaseAssetLink | A link to PUT one file’s bytes to: the server stores them in chunks as they arrive and attaches the file (replacing one of the same name). For browsers, which can’t chunk. |
Source
| Call | Request | Response | What it does |
ListRuns | ListRunsRequest | ListRunsResponse | Runs of a repository, newest first. Read access. |
GetRun | RunRef | Run | |
ReadLog | ReadLogRequest | ReadLogResponse | A job’s log, from a byte offset: call again with next_offset to follow a live job. |
CancelRun | RunRef | Run | Write access. |
RerunRun | RerunRequest | Run | Runs it again on the same change: the failed jobs (and what needs them), or all. |
ListWorkflows | ListWorkflowsRequest | ListWorkflowsResponse | The workflows a branch has (default: the default branch): what starts each, its jobs, and why one can’t be read. Read access. |
ArtifactUrl | RunArtifactRef | ArtifactLink | A link to download one of a run’s artifacts (files a job kept), good for a few minutes. |
StartRun | StartRunRequest | Run | Starts a workflow that can be started by hand (manual, GitHub’s workflow_dispatch). |
ApproveRun | RunRef | Run | Lets a run of an outsider’s code (a fork) go ahead. Maintain access. |
SetSecret | SetSecretRequest | Empty | Secrets: names and when they changed are listed; values are never sent back. Only runs of code already on a protected branch get them. Admin access. |
ListSecrets | RepositoryRef | ListSecretsResponse | |
DeleteSecret | SecretRef | Empty | |
RegisterRunner | RegisterRunnerRequest | RegisterRunnerResponse | Runners belong to an owner (a person or an organisation) and take jobs for its repositories. Registering and removing need the owner’s administrators. |
ListRunners | ListRunnersRequest | ListRunnersResponse | |
RemoveRunner | RemoveRunnerRequest | Empty | |
ClaimJob | ClaimJobRequest | ClaimJobResponse | Called by runners, which identify themselves with their key in the x-gd-runner header (not a person’s token). Waits up to wait_ms for a job that fits the runner’s labels. |
RunnerArtifacts | RunnerArtifactsRequest | RunnerArtifactsResponse | Links for a job’s runner to upload an artifact of its run, or download one (empty name: every artifact of the run). |
RunnerRelease | RunnerReleaseRequest | RunnerReleaseResponse | Makes (or adds to) a release from a trusted run, as whoever caused the run, and gives links to upload its files. The job’s steps never hold a token that could do this. |
ReportJob | ReportJobRequest | ReportJobResponse | Progress of a claimed job: log output, steps, and finally its result. Answers whether the job was cancelled, so the runner stops it. |
Source
| Call | Request | Response | What it does |
GetProfile | OrgName | Profile | A person’s page. Anyone may look; it shows only what the viewer can read. |
SetProfile | SetProfileRequest | Profile | Your name and bio. |
SetStar | SetStarRequest | Repository | Star a repository you can read, or take the star back. People only. |
SetWatch | SetWatchRequest | Repository | How much of a repository’s news reaches you. |
ListStarred | ListStarredRequest | ListRepositoriesResponse | A person’s starred repositories, newest star first. |
Explore | ExploreRequest | ExploreResponse | Public repositories, for anyone, signed in or not. |
ForkRepository | ForkRequest | Repository | A copy of a repository you can read, in an organisation where you may make repositories: every branch and tag, sharing the source’s history rather than copying it. A private repository’s forks stay in its organisation and private. |
ListForks | RepositoryRef | ListRepositoriesResponse | Forks of a repository that the caller can read. |
CompareFork | RepositoryRef | ForkStatus | How a fork’s default branch stands against its source’s: changes ahead and behind. |
UpdateFork | RepositoryRef | ForkStatus | Brings the source’s new work into a fork’s default branch: at once when the fork has nothing of its own on it, else as a change request in the fork (both sides changed, so a person looks). Takes Write on the fork. |