IF Commons GitHub

physical/gitlab

Written to: 6 requirements: 6 proved, 0 partly, 0 failing, 0 with no test recorded. 0002-anyfs-githost-store FR-006, 0002-anyfs-githost-store FR-013, 0002-anyfs-githost-store FR-004, 0002-anyfs-githost-store FR-009, 0002-anyfs-githost-store FR-010, 0002-anyfs-githost-store FR-011

GitLab's REST API (v4) as a repository of Git (HostApi), for gitlab.com or a server of one's own: a project is addressed by its whole path with every / encoded (groups to any depth), the tree is read by pages along the Link header until the last, and a commit is made with the Commits API, which takes every change of a batch as one commit. Where GitHub's branch is moved by compare-and-swap, GitLab checks each file the commit changes: an update, a delete or a move carries the last commit that changed the file at the commit it was checked at, and a create is refused where the file exists, so that a writer that read a file before another changed it conflicts, and writers of different files both win.

Limits, said once: a commit is by the author the store names and the committer is the user of the token (GitLab does not take another); the author's date is the host's clock; a tree is read in pages of a hundred and a tree of more than a hundred thousand entries is refused as such, never returned in part; a file is read through its blob, so a listing asks for each blob it has not seen, a few at a time.

Source: commons/anyfs-githost/src/physical/gitlab.ts

0 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

gitlabApifunctionno test imports it
function gitlabApi(options: GitlabApiOptions): HostApi

GitLab's API as a repository of Git.

GitlabApiOptionstypeno test imports it
type GitlabApiOptions = {
  readonly call: Call;
  /** The whole path of the project, such as `group/subgroup/project`. */
  readonly project: string;
  readonly host: string;
  readonly concurrency?: number;
};

What GitLab's client is made with.

Titles, headings, exports, tables, columns and requirements. Esc closes.