types

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

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 NoOption

type NoOption struct{}

NoOption empty struct.

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.

Jump to

Keyboard shortcuts

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