Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Organization string `yaml:"organization"`
User string `yaml:"user"`
IncludePublic *bool `yaml:"include_public"`
IncludePrivate *bool `yaml:"include_private"`
IncludeArchived *bool `yaml:"include_archived"`
ExcludeRepos []string `yaml:"exclude_repos"`
// contains filtered or unexported fields
}
Config represents the application configuration loaded from a YAML file.
func (*Config) IsExcluded ¶
IsExcluded checks whether the given repository name matches any pattern in ExcludeRepos.
func (*Config) IsUserMode ¶ added in v0.3.0
IsUserMode returns true if the configuration targets a user account rather than an organization.
func (*Config) Owner ¶ added in v0.3.0
Owner returns the configured organization or user name. This should only be called after Validate() has confirmed that exactly one of Organization or User is set.
func (*Config) ShouldIncludeArchived ¶ added in v0.1.2
ShouldIncludeArchived returns true if archived repositories should be included. Defaults to false when not explicitly set.
func (*Config) ShouldIncludePrivate ¶
ShouldIncludePrivate returns true if private repositories should be included. Defaults to true when not explicitly set.
func (*Config) ShouldIncludePublic ¶
ShouldIncludePublic returns true if public repositories should be included. Defaults to true when not explicitly set.