Documentation
¶
Index ¶
- func ProcessTemplate(templateContent []byte, defaultVars map[string]string, ...) ([]byte, error)
- type Config
- type Content
- func (c *Content) CheckFiles(repoName string, files []string, cfg *config.Config) error
- func (c *Content) CheckLicenses(cfg *config.Config, onlyRepo string) error
- func (c *Content) LoadRepoConfig(repopath string) (Config, error)
- func (c *Content) ManagedFiles(cfg *config.Config, onlyRepo string) error
- func (c *Content) UpdateLicense(repoName string, cfg *config.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { PrTargetBranch *string `yaml:"pr_target_branch"` AssignUsers []string `yaml:"assign_users"` AssignGroup *string `yaml:"assign_group"` CommitPrefix *string `yaml:"commit_prefix"` VarOverrides map[string]string `yaml:"var_overrides"` }
Config holds configuration data for a repository, including information about target branches, users to assign, groups, and commit prefixes.
type Content ¶
type Content struct {
// contains filtered or unexported fields
}
Content the content manager object
func NewContent ¶
func NewContent(templates, githubOrg, committerName, committerEmail, reviewTeam, githubToken string) (*Content, error)
NewContent returns new repo content manager
func (*Content) CheckFiles ¶
CheckFiles checks all the files for updates in the repo
func (*Content) CheckLicenses ¶
CheckLicenses checks all repos for licenses that need to be managed/updated
func (*Content) LoadRepoConfig ¶
LoadRepoConfig loads the repository configuration from the .repo-content-updater.yml file. It returns a RepoConfig struct filled with the loaded configuration and any error encountered during loading.
func (*Content) ManagedFiles ¶
ManagedFiles updates all managed files in the org with current versions
Click to show internal directories.
Click to hide internal directories.