plugin

package
v0.0.0-...-ce3d181 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginName is the name of this plugin
	PluginName = labels.NeedsRebase
)

Variables

This section is empty.

Functions

func HandleAll

func HandleAll(log *logrus.Entry, ghc githubClient, config *plugins.Configuration) error

HandleAll checks all orgs and repos that enabled this plugin for open PRs to determine if the "needs-rebase" label needs to be added or removed. It depends on Github's mergeability check to decide the need for a rebase.

func HandleEvent

func HandleEvent(log *logrus.Entry, ghc githubClient, pre *github.PullRequestEvent) error

HandleEvent handles a Github PR event to determine if the "needs-rebase" label needs to be added or removed. It depends on Github mergeability check to decide the need for a rebase.

func HelpProvider

func HelpProvider(enabledRepos []string) (*pluginhelp.PluginHelp, error)

HelpProvider constructs the PluginHelp for this plugin that takes into account enabled repositories. HelpProvider defines the type for function that construct the PluginHelp for plugins.

Types

This section is empty.

Jump to

Keyboard shortcuts

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