Feature request: allow cooldown via CLI flag (--cooldown-days)

Abierto
#134 0 comentarios 5 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
72/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go
Área
cli

Línea de trabajo

Start by locating the CLI flag parsing and CooldownConfig.DefaultDays handling, then trace how dependabot.yml and the user config are loaded. Add the --cooldown-days integer flag with the stated precedence, including zero disabling cooldown, and verify the behavior through the existing CLI or configuration tests.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area:cli feature-request

Feature request: allow cooldown via CLI flag (--cooldown-days)

Summary

Allow the cooldown (minimum release age) to be set directly via a CLI flag.

Motivation

  • For one-off or CI runs, it's useful to say "don't pin tags newer than N days" without depending on a Dependabot config or a user config file.
  • Per-repo overrides are better left to config files — repeating key=value flags per action doesn't scale — so the flag should set only the global CooldownConfig.DefaultDays.

Proposal

Add --cooldown-days N (int). When set, it takes precedence over .github/dependabot.yml and ~/.config/gh-actions-lock/config.yml and applies to CooldownConfig.DefaultDays. Treat --cooldown-days 0 as disabling cooldown for that run (making a separate --no-cooldown unnecessary).

Precedence: flag > dependabot.yml > user config > none

Lenguaje dominante
Go
Estrellas
253
Forks
15
Merge medio
19 h 30 min
PR fusionados (30 d)
60

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/gh-actions-lock

Todos los issues de github/gh-actions-lock

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.