gatelineAPI reference
  • A repository's id when the caller gives none (#494, #502): derived from its origin the way the server names a repository given by --repo with no config entry (github.com/acme/billing, or local/<directory name> with no origin), so the engine's RunRef.source matches the server's id for the same repository.

    When the origin gives no usable id (a path segment that is -, say) the id is local/<directory name> if that name is a valid local name. Otherwise this throws RepositoryIdError with core's own words: an engine must never invent an id the server would refuse, because the two would then disagree about which repository a run belongs to.

    Parameters

    • repoDir: string

    Returns Promise<string>