Skip to content

Commit 3883aee

Browse files
committed
fix: warn when --tag-filter is used without --list-tags
Assisted-by: OpenCode
1 parent 0d97006 commit 3883aee

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

skills/prow-trigger-nightly/scripts/trigger_nightly_job.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,9 @@ def validate_args(args: argparse.Namespace) -> None:
604604
log_error("Either --list, --list-tags, or --job is required.")
605605
sys.exit(1)
606606

607+
if args.tag_filter and not args.list_tags:
608+
log_warn("--tag-filter is only used with --list-tags, ignoring.")
609+
607610
if args.job:
608611
if not args.job.startswith("periodic-ci-"):
609612
log_error(f"Job name must start with 'periodic-ci-', got: {args.job}")

0 commit comments

Comments
 (0)