gatelineAPI reference
FrameworkCheck:
    | {
        carries: "lock";
        defaultBranch: string;
        ok: true;
        pinnedRef: string
        | null;
        prefix: string;
    }
    | { carries: "root"; defaultBranch: string; ok: true }
    | {
        defaultBranch: string;
        locksElsewhere: string[];
        message: string;
        ok: false;
    }

Type declaration

  • {
        carries: "lock";
        defaultBranch: string;
        ok: true;
        pinnedRef: string | null;
        prefix: string;
    }
    • carries: "lock"

      A framework lock at <prefix>/framework-lock.json (case 1).

    • defaultBranch: string
    • ok: true
    • pinnedRef: string | null

      The framework ref the lock pins (source.ref), or null when the lock does not say.

    • prefix: string
  • { carries: "root"; defaultBranch: string; ok: true }
    • carries: "root"

      No lock, and roles/, contracts/ and registry/ at the root (case 2, "no lock").

    • defaultBranch: string
    • ok: true
  • { defaultBranch: string; locksElsewhere: string[]; message: string; ok: false }
    • defaultBranch: string
    • locksElsewhere: string[]

      Directories on the default branch that hold a framework-lock.json other than the probed one.

    • message: string

      What is wrong and what to do, naming gateline init and, when a lock is elsewhere, gateline_prefix.

    • ok: false