merge

package
v0.0.732 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineConfigs

func CombineConfigs(a, b *v1alpha1.RepositoryConfig) *v1alpha1.RepositoryConfig

CombineConfigs combines the two configurations together from multiple files

func ConfigMerge

func ConfigMerge(cfg *config.Config, pluginsCfg *plugins.Configuration, repoConfig *v1alpha1.RepositoryConfig, repoOwner string, repoName string) error

ConfigMerge merges the repository configuration into the global configuration

func RemoveStringArrayAtIndex

func RemoveStringArrayAtIndex(s []string, index int) []string

RemoveStringArrayAtIndex removes an item at a given index

func StringArrayIndex

func StringArrayIndex(array []string, value string) int

StringArrayIndex returns the index in the slice which equals the given value

func ToApprove

func ToApprove(r *v1alpha1.Approve, repoKey string) plugins.Approve

ToApprove converts the repo config to the lighthouse config resource

func ToBrancher

func ToBrancher(r v1alpha1.Brancher) config.Brancher

ToBrancher converts the repo config to the lighthouse config resource

func ToJobBase

func ToJobBase(r v1alpha1.JobBase) config.JobBase

ToJobBase converts the repo config to the lighthouse config resource

func ToPostsubmit

func ToPostsubmit(r v1alpha1.Postsubmit) config.Postsubmit

ToPostsubmit converts the repo config to the lighthouse config resource

func ToPresubmit

func ToPresubmit(r v1alpha1.Presubmit) config.Presubmit

ToPresubmit converts the repo config to the lighthouse config resource

func ToRegexpChangeMatcher

func ToRegexpChangeMatcher(r v1alpha1.RegexpChangeMatcher) config.RegexpChangeMatcher

ToRegexpChangeMatcher converts the repo config to the lighthouse config resource

func ToReporter

func ToReporter(r v1alpha1.Reporter) config.Reporter

ToReporter converts the repo config to the lighthouse config resource

func ToUtilityConfig

func ToUtilityConfig(r v1alpha1.UtilityConfig) config.UtilityConfig

ToUtilityConfig converts the repo config to the lighthouse config resource

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL