gatelineAPI reference
interface AddedRepository {
    configPath: string;
    displayName: string;
    framework:
        | {
            carries: "lock";
            defaultBranch: string;
            ok: true;
            pinnedRef: null
            | string;
            prefix: string;
        }
        | { carries: "root"; defaultBranch: string; ok: true };
    id: string;
    mode: "decide" | "view" | "dispatch";
    stillInvalid: null | string;
    top: string;
}

Properties

configPath: string
displayName: string
framework:
    | {
        carries: "lock";
        defaultBranch: string;
        ok: true;
        pinnedRef: null
        | string;
        prefix: string;
    }
    | { carries: "root"; defaultBranch: string; ok: true }

Type declaration

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

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

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

      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
id: string
mode: "decide" | "view" | "dispatch"
stillInvalid: null | string

Why the file as a whole still would not load after the edit — an older entry with no mode, say. The edit is made; startup will refuse until this is fixed.

top: string