package current_gitlab

  1. Overview
  2. Docs

Module Api.RepoSource

A Project's repository on GitLab.

Sourcetype nonrec t = t * Repo_id.t
Sourceval id : t -> Repo_id.t
Sourceval pp : t Fmt.t

Pretty print t.

Sourceval compare : t -> t -> int
Sourceval ci_refs : ?staleness:Duration.t -> t Current.t -> Commit.t list Current.t

ci_refs t evaluates to the list of branches and open PRs in t.

  • parameter staleness

    If given, commits older than this are excluded. Note: the main branch commit is always included, even if stale.

Sourceval head_commit : t Current.t -> Commit.t Current.t

head_commit t evaluates to the commit at the head of the default branch in t.

OCaml

Innovation. Community. Security.