Skip to content

Commit

Permalink
refactor(config): key ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephKav committed Jun 22, 2022
1 parent 588eb47 commit 89a0706
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion service/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ type Service struct {
IconLinkTo *string `yaml:"icon_link_to,omitempty"` // URL to redirect Icon clicks to.
CommandController *command.Controller `yaml:"-"` // The controller for the OS Commands that tracks fails and has the announce channel.
Command *command.Slice `yaml:"command,omitempty"` // OS Commands to run on new release.
Notify *shoutrrr.Slice `yaml:"notify,omitempty"` // Service-specific Shoutrrr vars.
WebHook *webhook.Slice `yaml:"webhook,omitempty"` // Service-specific WebHook vars.
Notify *shoutrrr.Slice `yaml:"notify,omitempty"` // Service-specific Shoutrrr vars.
DeployedVersionLookup *DeployedVersionLookup `yaml:"deployed_version,omitempty"` // Var to scrape the Service's current deployed version.
Status *service_status.Status `yaml:"status,omitempty"` // Track the Status of this source (version and regex misses).
HardDefaults *Service `yaml:"-"` // Hardcoded default values.
Expand Down
9 changes: 5 additions & 4 deletions web/ui/react-app/src/types/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export interface ServiceType {
ignore_misses?: string;
icon?: string;
icon_link_to?: string;
notify?: ServiceDict<NotifyType>;
command?: string[];
webhook?: ServiceDict<WebHookType>;
notify?: ServiceDict<NotifyType>;
deployed_version?: DeployedVersionLookupType;
status?: StatusType;
}
Expand Down Expand Up @@ -127,10 +127,11 @@ export interface OptionsType {
}

export interface WebHookType {
type: string;
url: string;
secret?: string;
type?: string;
url?: string;
allow_invalid_certs?: boolean;
custom_headers?: Map<string, string>;
secret?: string;
desired_status_code?: number;
delay?: string;
max_tries?: number;
Expand Down

0 comments on commit 89a0706

Please sign in to comment.