githuboperator

package
v0.0.0-...-2c531d0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(githubClient GithubClient, issuesTriage IssuesTriage, answeringLabels []githubstructures.Label, OUR_LABEL_TEXT string, ANSWERED_LABEL_TEXT string, NOT_ANSWERED_LABEL_TEXT string, defaultLabels []githubstructures.Label, manualLabelConfigs []githubstructures.ManualLabelConfig) *githuboperator

Types

type GithubClient

type GithubClient interface {
	FindRepos() []string
	FindLabels(repoName string) []githubstructures.Label
	DeleteLabel(repoName string, labelName string)
	CreateLabel(repoName string, label githubstructures.Label)
	RemoveLabel(issueUrl string, labelName string)
	AddLabel(issueUrl string, labelName string)
	RenameLabel(repoName string, oldLabelName string, newLabelName string)
	FindIssues(repoName string) []githubstructures.Issue
}

type IssuesTriage

type IssuesTriage interface {
	GroupByAnswering(issues []githubstructures.Issue) ([]githubstructures.Issue, []githubstructures.Issue, []githubstructures.Issue)
	GroupByManualLabel(issues []githubstructures.Issue, config githubstructures.ManualLabelConfig) ([]githubstructures.Issue, []githubstructures.Issue)
}

Jump to

Keyboard shortcuts

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