From 4ee15830f9cbb2346fc7607e42fa34c965a5d86c Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Fri, 27 Nov 2026 02:32:09 +1100 Subject: [PATCH] fix(guards): publish the Business Hours settings schema --- guards/business-hours/main.go | 2 +- guards/business-hours/package.yaml | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/guards/business-hours/main.go b/guards/business-hours/main.go index 0e4011e..3120c27 100644 --- a/guards/business-hours/main.go +++ b/guards/business-hours/main.go @@ -61,7 +61,7 @@ func hour(s string, fallback int) (int, error) { } func (hours) Describe() guard.Description { - return guard.Description{Name: "business-hours", Version: "1.0.0"} + return guard.Description{Name: "business-hours", Version: "1.0.1"} } func (h hours) Judge(_ context.Context, a guard.Action) (guard.Verdict, error) { diff --git a/guards/business-hours/package.yaml b/guards/business-hours/package.yaml index e096ce8..f6d2dcd 100644 --- a/guards/business-hours/package.yaml +++ b/guards/business-hours/package.yaml @@ -1,7 +1,23 @@ apiVersion: dev.archie.package.v1 displayName: Business hours description: Hold actions that change something outside working hours at propose and wait. -version: 1.0.0 +version: 1.0.1 +settings: + - key: timezone + label: Time zone + description: IANA time zone, such as Australia/Sydney. Defaults to UTC. + - key: start + label: Start hour + description: First working hour in local time. Defaults to 9. + type: number + - key: end + label: End hour + description: First hour after business hours in local time. Defaults to 17. + type: number + - key: days + label: Working days + description: Comma-separated weekday numbers, with Sunday as 0. Defaults to Monday through Friday. + type: list contributes: extensions: - surface: guard -- 2.54.0