stale

package
v0.0.0-...-2443087 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStale

func IsStale(issue *github.Issue, config Configuration) bool

func MarkAndCloseForRepo

func MarkAndCloseForRepo(context *ctx.Context, config Configuration) error

func MarkOrCloseIssue

func MarkOrCloseIssue(context *ctx.Context, issue *github.Issue, config Configuration) error

Types

type Configuration

type Configuration struct {
	// Whether to actuall perform the action. If false, just outputs what *would* happen.
	Perform bool

	// Labels, in addition to "stale", which should be mark an issue as already stale.
	StaleLabels []string

	// If an issue has this label, it is not stale.
	ExemptLabels []string

	// After this duration, the next action is performed (either mark or close).
	DormantDuration time.Duration

	// Comment to leave on a stale issue if being marked.
	// No comment is left if this is stale.
	NotificationComment *github.IssueComment
}

Jump to

Keyboard shortcuts

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