Merge pull request 'fix(guards): publish the Business Hours settings schema' (#1) from fix/business-hours-settings into main
publish / publish (push) Successful in 3m18s
publish / publish (push) Successful in 3m18s
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
commit
094d41a6a9
2 files changed
+18
-2
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user