Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatedAfter ¶
CreatedAfter looks for event created after time
func (CreatedAfter) Match ¶
func (c CreatedAfter) Match(event *github.IssueEvent) bool
Match if the event is after the time
type CreatedBefore ¶
CreatedBefore looks for event created before time
func (CreatedBefore) Match ¶
func (c CreatedBefore) Match(event *github.IssueEvent) bool
Match if the event is before the time
type FilteredEvents ¶
type FilteredEvents []*github.IssueEvent
FilteredEvents is a list of events
func FilterEvents ¶
func FilterEvents(events []*github.IssueEvent, matcher Matcher) FilteredEvents
FilterEvents will return the list of matching events
func (FilteredEvents) Empty ¶
func (f FilteredEvents) Empty() bool
Empty Checks to see if the list of events is empty
func (FilteredEvents) GetLast ¶
func (f FilteredEvents) GetLast() *github.IssueEvent
GetLast returns the last event in a series of events
type LabelPrefix ¶
type LabelPrefix string
LabelPrefix searches for event whose label starts with the string
func (LabelPrefix) Match ¶
func (l LabelPrefix) Match(event *github.IssueEvent) bool
Match if the label starts with the string
type Matcher ¶
type Matcher interface {
Match(event *github.IssueEvent) bool
}
Matcher is an interface to match an event
func BotActor ¶
func BotActor() Matcher
BotActor returns a matcher that checks if the event was done by either of the Bots
func HumanActor ¶
func HumanActor() Matcher
HumanActor returns a matcher that checks if the event was done by a Human (Not a Bot)
func JenkinsBotActor ¶
func JenkinsBotActor() Matcher
JenkinsBotActor returns a matcher that checks if the event was completed by JenkinsBot
func MungeBotActor ¶
func MungeBotActor() Matcher
MungeBotActor returns a matcher that checks if the event was completed by MungeBot