IF Commons GitHub

governance/tiers

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0002-repoctl-governance FR-003

The audience tiers of Repoctl (commons repoctl 0002-repoctl-governance FR-003; commons headless 0010-audience-tiers): three, lowest first. public sees what only reads (the checks, the status, the plan of a release); contributor also sees what changes a checkout (the generated files, the merge, the commit, a new library, the making of a release); releaser also sees the publication. The tier is a fact of the host that runs the program (the variable REPOCTL_TIER, the key of a tool server), never a word of a message.

import { LADDER, tierOf } from "./tiers.ts";
LADDER.ladder.length; // 3
tierOf("releaser");

Source: commons/repoctl/src/governance/tiers.ts

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

governance.TierIdtypeno test imports it
type TierId = "public" | "contributor" | "releaser";

The names of the tiers, lowest first: a closed union.

governance.TIER_IDSconstno test imports it
const TIER_IDS: readonly TierId[]

Every tier, lowest first.

governance.TIERSconstno test imports it
const TIERS: Readonly<Record<TierId, TierName>>

The three tiers as headless' tier names.

governance.LADDERconstno test imports it
const LADDER: TierLadder

The ladder of the program: the tier of a caller who says nothing is contributor, the person at their own checkout.

governance.tierOffunctionno test imports it
function tierOf(word: string): TierName | undefined

The tier named by a word, or undefined where the word is none of the three.

TierIdtypeno test imports it
type TierId = "public" | "contributor" | "releaser";

The names of the tiers, lowest first: a closed union.

TIER_IDSconst
const TIER_IDS: readonly TierId[]

Every tier, lowest first.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

TIERSconst
const TIERS: Readonly<Record<TierId, TierName>>

The three tiers as headless' tier names.

Imported by 43 tests of the run (43 passed, 0 failed): the library's results

LADDERconst
const LADDER: TierLadder

The ladder of the program: the tier of a caller who says nothing is contributor, the person at their own checkout.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

tierOffunction
function tierOf(word: string): TierName | undefined

The tier named by a word, or undefined where the word is none of the three.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

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