Databricks SDK for JavaScript
    Preparing search index...

    Complete git source specification including repository location and reference.

    interface GitSource {
        gitRepository?: GitRepository;
        reference?:
            | { $case: "branch"; branch: string }
            | { $case: "tag"; tag: string }
            | { $case: "commit"; commit: string };
        resolvedCommit?: string;
        sourceCodePath?: string;
    }
    Index

    Properties

    gitRepository?: GitRepository

    Git repository configuration. Populated from the app's git_repository configuration.

    reference?:
        | { $case: "branch"; branch: string }
        | { $case: "tag"; tag: string }
        | { $case: "commit"; commit: string }

    Git reference to checkout. Mutually exclusive: branch, tag, or commit.

    Type Declaration

    • { $case: "branch"; branch: string }
      • $case: "branch"
      • branch: string

        Git branch to checkout.

    • { $case: "tag"; tag: string }
      • $case: "tag"
      • tag: string

        Git tag to checkout.

    • { $case: "commit"; commit: string }
      • $case: "commit"
      • commit: string

        Git commit SHA to checkout.

    resolvedCommit?: string

    The resolved commit SHA that was actually used for the deployment. This is populated by the system after resolving the reference (branch, tag, or commit). If commit is specified directly, this will match commit. If a branch or tag is specified, this contains the commit SHA that the branch or tag pointed to at deployment time.

    sourceCodePath?: string

    Relative path to the app source code within the Git repository. If not specified, the root of the repository is used.