Package version:

The source reference for the GitRepository object.

interface RepositoryRefDefinition {
    branch?: string;
    commit?: string;
    semver?: string;
    tag?: string;
}

Properties

branch?: string

The git repository branch name to checkout.

commit?: string

The commit SHA to checkout. This value must be combined with the branch name to be valid. This takes precedence over semver.

semver?: string

The semver range used to match against git repository tags. This takes precedence over tag.

tag?: string

The git repository tag name to checkout. This takes precedence over branch.