fix(guards): publish the Business Hours settings schema #1

Merged
sam merged 1 commits from fix/business-hours-settings into main 2026-11-27 08:44:02 +00:00
2 changed files with 18 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -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) {
+17 -1
View File
@@ -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