Skip to content

Commit

Permalink
SCALRCORE-19982 Workspaces > Get rid of configuration version root at…
Browse files Browse the repository at this point in the history
…tribute (BC)
  • Loading branch information
penja committed Dec 6, 2021
1 parent e7ed653 commit b31a8a9
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,10 @@ type Hooks struct {

// WorkspaceVCSRepo contains the configuration of a VCS integration.
type WorkspaceVCSRepo struct {
Branch string `json:"branch"`
Identifier string `json:"identifier"`
IngressSubmodules bool `json:"ingress-submodules"`
TriggerPrefixes []string `json:"trigger-prefixes,omitempty"`
DryRunsEnabled bool `json:"dry-runs-enabled"`
Branch string `json:"branch"`
Identifier string `json:"identifier"`
TriggerPrefixes []string `json:"trigger-prefixes,omitempty"`
DryRunsEnabled bool `json:"dry-runs-enabled"`
}

// WorkspaceActions represents the workspace actions.
Expand Down Expand Up @@ -182,12 +181,10 @@ type WorkspaceCreateOptions struct {

// WorkspaceVCSRepoOptions represents the configuration options of a VCS integration.
type WorkspaceVCSRepoOptions struct {
Branch *string `json:"branch,omitempty"`
Identifier *string `json:"identifier,omitempty"`
IngressSubmodules *bool `json:"ingress-submodules,omitempty"`
Path *string `json:"path,omitempty"`
TriggerPrefixes *[]string `json:"trigger-prefixes,omitempty"`
DryRunsEnabled *bool `json:"dry-runs-enabled,omitempty"`
Branch *string `json:"branch,omitempty"`
Identifier *string `json:"identifier,omitempty"`
TriggerPrefixes *[]string `json:"trigger-prefixes,omitempty"`
DryRunsEnabled *bool `json:"dry-runs-enabled,omitempty"`
}

// HooksOptions represents the WorkspaceHooks configuration.
Expand Down

0 comments on commit b31a8a9

Please sign in to comment.