Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
Name string `yaml:"name" mapstructure:"name"`
Directory string `yaml:"directory" mapstructure:"directory"`
DefaultLabels string `yaml:"default_labels" mapstructure:"default_labels"`
GithubRepo string `yaml:"github_repo" mapstructure:"github_repo"`
GitlabRepo string `yaml:"gitlab_repo" mapstructure:"gitlab_repo"`
DefaultBranch string `yaml:"default_branch" mapstructure:"default_branch"`
Worktree Worktree `yaml:"worktree,omitempty" mapstructure:"worktree"`
}
Repository represents a single repository configuration
type Settings ¶
type Settings struct {
Repositories []Repository `yaml:"repositories" mapstructure:"repositories"`
}
Settings represents the root configuration
func (*Settings) GetRepo ¶
func (s *Settings) GetRepo(name string) *Repository
GetRepo returns a repository by name
func (*Settings) GetRepoNames ¶
GetRepoNames returns a list of repository names
Click to show internal directories.
Click to hide internal directories.