issues

package
v0.0.0-...-a134692 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package issues deals with munging of github issues

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeMungers

func InitializeMungers(requestedMungers []string, config *github_util.Config) error

InitializeMungers will call munger.Initialize() for all mungers requested in --issue-mungers

func MungeIssues

func MungeIssues(config *github_util.Config) error

MungeIssues is the main function which asks that each munger be called for each Issue

func RegisterMunger

func RegisterMunger(munger IssueMunger) error

RegisterMunger should be called in `init()` by each munger to make itself available by name

Types

type IssueMunger

type IssueMunger interface {
	MungeIssue(config *github_util.Config, issue *github_api.Issue)
	AddFlags(cmd *cobra.Command, config *github_util.Config)
	Initialize(*github_util.Config) error
	Name() string
}

IssueMunger is the interface which all mungers must implement to register

func GetAllMungers

func GetAllMungers() []IssueMunger

GetAllMungers returns a slice of all registered mungers. This list is completely independant of the mungers selected at runtime in --pr-mungers. This is all possible mungers.

Jump to

Keyboard shortcuts

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