bot

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot interface {
	StartPolling()
	Webhook(event interface{})
	MonthlyCheck() (*map[string]*[]string, error)
	GetMiddleware() Middleware
}

Bot contains main polling process

func InitBot

func InitBot(repo *config.RepoConfig, opr *operator.Operator) Bot

InitBot return bot instance

type Middleware

type Middleware struct {
	Prlimit          prlimit.PrLimit
	Merge            merge.Merge
	IssueRedeliver   issueRedeliver.Redeliver
	PullStatus       pullstatus.PullStatus
	AutoUpdate       autoUpdate.AutoUpdate
	CommandRedeliver *command.CommandRedeliver
	Notify           *notify.Notify
	Approve          *approve.Approve
	Contributor      *contributor.Contributor
	FileWatcher      *fileWatcher.Watcher
	Assign           *assign.Assign
	AddLabel         *addLabel.Label
	AddTemplate      *addTemplate.Comment
	CheckTemplate    *checkTemplate.Check
	// contains filtered or unexported fields
}

Middleware defines middleware struct

Jump to

Keyboard shortcuts

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