package gitlab-jsoo

Build not checked
  1. Overview
  2. Docs
Gitlab APIv4 OCaml library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

gitlab-0.1.7.tbz
sha256=b7735b3002a39c2553a1fe43e7b90eeb80a07d0a37da0f6da9908d1f131d734b
sha512=c0d05519666979285ddbaf982c50c90d0c97b0b4d9d2223aefd69e40f18249fdd2f15250871a12dba61ff00e9ad5c312526c3bf1f805f66d1fa154623d01fbc6

Description

This library provides an OCaml interface to the Gitlab APIv4 (JSON). This library installs the JavaScript version, which uses js_of_ocaml.

Added to opam-repository:

README

Gitlab bindings for OCaml

GitHub CI docs OCaml-CI Build Status

Native OCaml bindings to Gitlab REST API v4.

The API coverage is incomplete (currently we support many of the Commit, Project, User and Event APIs) but if you find something missing please create an Issue or PR.

Pre-requisites

  • Plain opam / ocaml for building.

Configuration

Gitlab can be hosted in multiple places and configurations. By default the library uses the public gitlab.com site with it's API endpoint of https://gitlab.com/api/v4. This can be changed with:

GITLAB_URL # to configure the GitLab instance to connect to.

or programatically by overriding the Env module.

Debugging

Two environment variables will cause more debugging to be output:

    GITLAB_DEBUG=1   # API calls output to stderr
COHTTP_DEBUG=1   # even more HTTP-level debugging

If using the bindings from the toplevel, you can also set Gitlab.log_active to true to get the same effect as setting the GITLAB_DEBUG environment variable.

Lab Cli

A command line client is provided called lab in the style of a similarly named tool hub for GitHub. From source you can run as:

dune exec -- lab <arguments>

If you opam install lab then the executable is available as lab.

Run lab -h for more information about cli options.

Tests

Running mdx tests for lab cli:

# Run integration tests against real gitlab instance
dune runtest --profile non-deterministic

# Promote any changes
dune runtest --profile non-deterministic --auto-promote

NOTE that ocaml-ci doesn't run these tests, any changes to the cli need to be validated manually.

Resources

MDX Setup in RWO

Dependencies (6)

  1. js_of_ocaml-lwt >= "3.4.0"
  2. cohttp-lwt-jsoo >= "4.0"
  3. cohttp >= "4.0"
  4. gitlab = version
  5. ocaml >= "4.08.0"
  6. dune >= "2.9"

Dev Dependencies (1)

  1. odoc with-doc

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building gitlab-jsoo with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

This version is not in the latest run; the versions below are.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.1.8 good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure