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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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