Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Owner string `toml:"owner,omitempty"`
RepositoryName string `toml:"repositoryName,omitempty"`
Rules []Rule `toml:"rules,omitempty"`
Locks []Frozen `toml:"locks,omitempty"`
}
Configuration global configuration.
type Frozen ¶ added in v1.3.0
type Frozen struct {
Label string `toml:"label,omitempty"`
ExcludedLabels []string `toml:"excludedLabels,omitempty"`
DaysSinceUpdate int `toml:"daysSinceUpdate,omitempty"`
Disable bool `toml:"disable,omitempty"`
}
Frozen to lock issues.
type Options ¶
type Options struct {
GitHubToken string `long:"token" short:"t" description:"GitHub Token. [required]"`
DryRun bool `long:"dry-run" description:"Dry run mode."`
LogLevel string `long:"log-level" description:"Log level."`
ConfigFilePath string `long:"config-path" description:"Configuration file path."`
ServerMode bool `long:"server" description:"Server mode."`
ServerPort int `long:"port" description:"Server port."`
}
Options CLI options.
type Rule ¶
type Rule struct {
IncludedLabels []string `toml:"includedLabels,omitempty"`
ExcludedLabels []string `toml:"excludedLabels,omitempty"`
Message string `toml:"message,omitempty"`
DaysSinceCreation int `toml:"daysSinceCreation,omitempty"`
DaysSinceUpdate int `toml:"daysSinceUpdate,omitempty"`
Disable bool `toml:"disable,omitempty"`
}
Rule to closes issues.
Click to show internal directories.
Click to hide internal directories.