RepoDsl

open class RepoDsl(repoName: String)

DSL for configuring a repo (source repository location).

Constructors

Link copied to clipboard
constructor(repoName: String)

Properties

Link copied to clipboard

Source-browser URL dialect. AUTO recognizes standard GitHub/GitLab hosts.

Link copied to clipboard

Explicit commit SHA for generated source-browse links, overriding the one read from the checkout's HEAD. Use when the local HEAD has not been pushed to the remote — e.g. after a local stig analysis branch commit. Set this to a commit (or branch/tag) that exists on the remote so that generated GitHub links resolve. Example: commit = "main" or a full SHA.

Link copied to clipboard

Strategy for choosing the commit used in source-browse links. When set, takes priority over commit:

Link copied to clipboard

Optional remote branch override for edit links. Normally inferred from the selected remote branch.

Link copied to clipboard

Git history used for provenance and source links, independently of root. CHECKOUT uses the nearest actual Git checkout: the enclosing monorepo for folders and git-subrepo imports, or the project's own repository for standalone clones and initialized submodules. SUBREPO_UPSTREAM explicitly uses the upstream and imported commit recorded in .gitrepo.

Link copied to clipboard
Link copied to clipboard

Optional path inside remoteUrl that corresponds to this configured root. Set this when the local STIG repo root is a subdirectory of the remote repository, e.g. remotePath = "models/stig-project".

Link copied to clipboard

Explicit source-browse base URL for this repo, overriding the one derived from the checkout's git origin remote. Accepts the SSH (git@host:org/repo.git) or HTTPS form; it is normalized to https://host/org/repo. Set this when origin is absent, points elsewhere, or there are multiple remotes — e.g. remoteUrl = "git@example.com:source/source-repo.git". The commit still comes from the checkout's HEAD unless commit is set.

Link copied to clipboard
var root: String?

Path to the root of this repo, relative to settings.gradle.kts. Example: root = "../../../sourceRepo"

Functions

Link copied to clipboard
fun bazel(configure: BazelBuildDsl.() -> Unit)

Repo-level Bazel defaults inherited by groups and elements that use this repo. Put workspace-wide options here when every element from the repo should use the same Bazel workspace, startup flags, or action-input tracking policy.