local

package
v0.0.0-...-da893e2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNewClient is returned when a new Github client fails.
	ErrNewClient = fmt.Errorf("Failed to allocate new Github client")
)

Functions

func InstallationEvent

func InstallationEvent(event *github.InstallationEvent) error

InstallationEvent handles events when an application is installed for the first time.

func InstallationRepositoriesEvent

func InstallationRepositoriesEvent(event *github.InstallationRepositoriesEvent) error

InstallationRepositoriesEvent handles events when repositories are added or removed from a particular application installation.

Types

type Config

type Config struct {
	// Delay is
	Delay time.Duration
	// contains filtered or unexported fields
}

Config contains

func NewConfig

func NewConfig(delay time.Duration) *Config

NewConfig creates a new config instantce.

func (*Config) IssuesEvent

func (c *Config) IssuesEvent(event *github.IssuesEvent) error

IssuesEvent .

Jump to

Keyboard shortcuts

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