Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 5 Imported by: 0

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 added in v0.2.0

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 added in v0.2.0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL