IF Commons GitHub

Githost

Quality: 19 tests: 19 passed, 0 failed, 0 skipped, 9 of 10 requirements proved, 0 open issues, 0 open tickets. The tests and issues of the library

The Git hosts behind one interface (commons 0001-githost FR-001 to FR-006): GitHub, GitLab (groups to any depth, gitlab.com or self-managed) and plain Git, shaped together as GitHostClient, with the reading of a remote URL, the table of what each kind offers and clientFor, the one place that reads a credential.

clientFor(ref, { env }) chooses the adapter by the kind of the reference and reads a token from env alone (GITHUB_TOKEN, then GH_TOKEN for GitHub; GITLAB_TOKEN, then CI_JOB_TOKEN for GitLab): the caller passes its environment, so that this code reads none itself. The token is held in the adapter's closure and nowhere else; it is never in a result, a failure, a URL or a log, and the live transport it makes sends it only to the host the client serves.

Entry points

Modules

Limits

What the modules of this area do not do, or do only in part, as each module's @limits says.

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