config

package
v0.0.0-...-f3bf748 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configs embed.FS

Configs is a filesystem with all the config files.

Functions

This section is empty.

Types

type CherrypickWatcherCfg

type CherrypickWatcherCfg struct {

	// Contains a map of name of the supported branch dep to a struct describing
	// the dep.
	SupportedBranchDeps map[string]*SupportedBranchDep `json:"supported_branch_deps"`
}

CherrypickWatcherCfg is a struct that contains supported branch deps configurations.

type SupportedBranchDep

type SupportedBranchDep struct {
	// Name of the source repo. Eg: skia
	SourceRepo string `json:"source_repo"`
	// Name of the source branch. Eg: chrome/m100
	SourceBranch string `json:"source_branch"`

	// Name of the target repo. Eg: skia
	TargetRepo string `json:"target_repo"`
	// Name of the target branch. Eg: android/next-releease
	TargetBranch string `json:"target_branch"`

	// Text that will be included in the reminder comment posted by this
	// framework.
	CustomMessage string `json:"custom_message"`
}

func ParseCfg

func ParseCfg(cfgContents []byte) ([]*SupportedBranchDep, error)

ParseCfg is a utility function that parses the given config file and returns a slice of the supported branch deps.

type VisibilityType

type VisibilityType string
const InternalVisibility VisibilityType = "internal"
const PublicVisibility VisibilityType = "public"
const StagingVisibility VisibilityType = "staging"

Jump to

Keyboard shortcuts

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