GitOps.Package (Git Ops v2.12.0)

View Source

A releasable package within the repository.

Repositories configured through the application environment, or through a git_ops.json without a packages map, have exactly one package rooted at the repository itself. A packages map defines one entry per released directory, each with its own tag prefix, changelog, and managed files.

Summary

Types

t()

@type t() :: %GitOps.Package{
  changelog_file: String.t(),
  depends_on: [String.t()],
  exclude_paths: [String.t()],
  managed_files: [
    {String.t(), (String.t() -> String.t()), (String.t() -> String.t())}
  ],
  name: String.t() | nil,
  patch_on_any_change?: boolean(),
  path: String.t(),
  pr_group: String.t() | nil,
  prefix: String.t(),
  root?: boolean(),
  version_file: {String.t(), Regex.t()} | nil,
  version_source: version_source()
}

version_source()

@type version_source() :: :mix | :tags | {:file, String.t(), Regex.t()}