Commands: CI

These commands prepare the repository for GitHub Actions and check that the tree matches what the build would generate.

histos.cli.DoctorScope.token
def token(area: Area): String =
    area match
      case Area.Toolchain       => "toolchain"
      case Area.BuildDefinition => "build"
      case Area.Workflows       => "workflows"
      case Area.RepoSettings    => "repo"
      case Area.SupplyChain     => "supply-chain"
      case Area.SitePublish     => "site"
      case Area.Release         => "release"
      case Area.Plugin(id)      => id.value

workflow

histos workflow --check fails when the generated workflows in the tree are stale. histos workflow --update writes them. Run it after histos update, then commit the files. The order is update, then generate, for a release pin and for a snapshot pin. Neither form publishes, and neither changes the Histos pin. The CI page says what a generated workflow contains and why the check fails if you skip the regenerate.

doctor

histos doctor runs the repository checks and prints what failed. Name projects to limit the run. --area <area> runs one group of checks. --json prints JSON for a script. --preflight <job> runs the checks that job needs. --verbose lists every check. --fix applies the edits Histos knows how to make, and --yes applies them without asking. Job preflight checks configuration and other product-independent prerequisites; it is not a substitute for the JVM compatibility proof that publish check, publish local, publish snapshots, and publish release run, explained on the Publish page.

setup

histos setup supply-chain writes the files the supply-chain checks expect. --from zipx starts from a zipx layout. --fix rewrites what it can, and --yes does not ask.