Documentation
¶
Overview ¶
Package config loads the release-cooldown policy for a repository from two sources: the repo's Dependabot config (authoritative) and the user's ~/.config/gh-actions-lock/config.yml (fallback). Precedence is composed by the command; see ResolveCooldown in cmd/gh-actions-lock/fresh_tag.go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DependabotCooldown ¶
func DependabotCooldown(repoRoot string) (cfg tag.CooldownConfig, ok bool, warnings []string)
DependabotCooldown reads the github-actions cooldown policy from repoRoot's Dependabot config (.github/dependabot.yml, falling back to .yaml). ok is true only when a github-actions entry configures a positive default-days; a block with default-days <= 0 (or only unsupported keys) is treated as not configured so it can't silently override a stricter policy from another source. warnings names configured keys the tool does not yet honor, so config is never silently ignored. An absent or malformed config yields ok=false and never blocks.
func FileCooldown ¶
func FileCooldown() (cfg tag.CooldownConfig, ok bool)
FileCooldown reads the user's ~/.config/gh-actions-lock/config.yml cooldown settings (top-level cooldown_days plus per-repo repos: overrides). ok is true only when the file supplies at least one of those. A missing or malformed file yields ok=false and never blocks.
Types ¶
This section is empty.