reports

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterOptions

func RegisterOptions(opts *options.Options) sets.String

RegisterOptions registers options used by reports and returns any options that should trigger a restart if they are changed.

func RegisterReport

func RegisterReport(report Report) error

RegisterReport should be called in `init()` by each report to make itself available by name

func RegisterReportOrDie

func RegisterReportOrDie(report Report)

RegisterReportOrDie will call RegisterReport but will be fatal on error

func RunReports

func RunReports(cfg *github.Config, runReports ...string) error

RunReports runs the specified reports.

Types

type Report

type Report interface {
	// Take action on a specific github issue:
	Report(config *github.Config) error
	RegisterOptions(opts *options.Options) sets.String
	Name() string
}

Report is the interface which all reports must implement to register

func GetActiveReports

func GetActiveReports() []Report

GetActiveReports returns a slice of all reports which both registered and were requested by the user

func GetAllReports

func GetAllReports() []Report

GetAllReports returns a slice of all registered reports. This list is completely independent of the reports selected at runtime in --pr-reports. This is all possible reports.

Jump to

Keyboard shortcuts

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