Skip to content

Commit

Permalink
Add config source branch back to raw config
Browse files Browse the repository at this point in the history
This was previously not getting parsed anymore
  • Loading branch information
ddumitrache committed Jan 20, 2023
1 parent d811c12 commit 27fb388
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/core/config/raw/global_cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type Repo struct {
AllowedOverrides []string `yaml:"allowed_overrides" json:"allowed_overrides"`
AllowCustomWorkflows *bool `yaml:"allow_custom_workflows,omitempty" json:"allow_custom_workflows,omitempty"`
DeleteSourceBranchOnMerge *bool `yaml:"delete_source_branch_on_merge,omitempty" json:"delete_source_branch_on_merge,omitempty"`
ConfigSourceBranch *string `yaml:"config_source_branch,omitempty" json:"config_source_branch,omitempty"`
}

func (g GlobalCfg) Validate() error {
Expand Down Expand Up @@ -268,5 +269,6 @@ OUTER:
AllowedOverrides: r.AllowedOverrides,
AllowCustomWorkflows: r.AllowCustomWorkflows,
DeleteSourceBranchOnMerge: r.DeleteSourceBranchOnMerge,
ConfigSourceBranch: r.ConfigSourceBranch,
}
}

0 comments on commit 27fb388

Please sign in to comment.