Skip to content

Commit

Permalink
Fixing broken tests after rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
msarvar committed Dec 14, 2020
1 parent 795d350 commit c25d57c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/events/yaml/raw/global_cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type Repo struct {
ApplyRequirements []string `yaml:"apply_requirements" json:"apply_requirements"`
PreWorkflowHooks []PreWorkflowHook `yaml:"pre_workflow_hooks" json:"pre_workflow_hooks"`
Workflow *string `yaml:"workflow,omitempty" json:"workflow,omitempty"`
AllowedWorkflows []string `yaml:"allowed_workflows,omitempty" json:"allowed_workflows,omitempty"`
AllowedOverrides []string `yaml:"allowed_overrides" json:"allowed_overrides"`
AllowCustomWorkflows *bool `yaml:"allow_custom_workflows,omitempty" json:"allow_custom_workflows,omitempty"`
}
Expand Down
1 change: 1 addition & 0 deletions server/events/yaml/valid/global_cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func NewGlobalCfg(allowRepoCfg bool, mergeableReq bool, approvedReq bool) Global
// we treat nil slices differently.
applyReqs := []string{}
allowedOverrides := []string{}
allowedWorkflows := []string{}
preWorkflowHooks := make([]*PreWorkflowHook, 0)
if mergeableReq {
applyReqs = append(applyReqs, MergeableApplyReq)
Expand Down

0 comments on commit c25d57c

Please sign in to comment.