gatelineAPI reference

Where the engine reads a host's configuration: one commit, resolved once.

interface HostTip {
    commit: string;
    fallback: boolean;
    name: string;
    ref: string;
}

Properties

Properties

commit: string

The commit every host input is read at.

fallback: boolean

True when no default branch could be determined (no origin/HEAD, no main or master), so git.defaultBranch() fell back to the checked-out branch and name is whatever happens to be checked out.

name: string

What git.defaultBranch() answered (main, origin/main, or the fallback), for messages.

ref: string

The fully qualified ref name was resolved through (refs/heads/main, refs/remotes/origin/main, HEAD).