bugs

package
v0.0.0-...-a1efb75 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIKeyFlagName = "bugzilla-key"

	UpcomingSprint           = "UpcomingSprint"
	ReviewedInSprintFlagName = "reviewed-in-sprint"

	BlockerFlagName = "blocker"

	FlagTrue      = "+"
	FlagRequested = "?"
	FlagFalse     = "-"

	CurrentReleaseMinor = "4.7"
)

Variables

View Source
var (
	CurrentRelease        = fmt.Sprintf("%s.0", CurrentReleaseMinor)
	CurrentReleaseTargets = []string{"---", CurrentRelease}
)

Functions

func AddFlags

func AddFlags(cmd *cobra.Command)

func BugzillaClient

func BugzillaClient(cmd *cobra.Command) (bugzilla.Client, error)

Types

type Bug

type Bug bugzilla.Bug

func (*Bug) APIBug

func (b *Bug) APIBug() *bugzilla.Bug

func (Bug) Blocker

func (b Bug) Blocker() bool

func (Bug) BlockerRequested

func (b Bug) BlockerRequested() bool

func (Bug) Flag

func (b Bug) Flag(name, status string) bool

func (Bug) HasTargetRelease

func (b Bug) HasTargetRelease(targets []string) bool

func (Bug) LowPriorityAndSeverity

func (b Bug) LowPriorityAndSeverity() bool

func (Bug) ReviewedInSprint

func (b Bug) ReviewedInSprint() bool

func (Bug) Untriaged

func (b Bug) Untriaged() bool

type BugData

type BugData struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func GetBugData

func GetBugData(cmd *cobra.Command, orgData *teams.OrgData) (*BugData, error)

func (*BugData) FilterBlocker

func (orig *BugData) FilterBlocker() *BugData

func (*BugData) FilterByFlag

func (orig *BugData) FilterByFlag(name, status string) *BugData

func (*BugData) FilterBySeverity

func (orig *BugData) FilterBySeverity(sSeverities []string) *BugData

func (*BugData) FilterByTargetRelease

func (orig *BugData) FilterByTargetRelease(sTargets []string) *BugData

func (*BugData) FilterByTeams

func (orig *BugData) FilterByTeams(teams []string) *BugData

func (*BugData) GetBugs

func (bd *BugData) GetBugs() []*Bug

func (*BugData) GetPeopleMap

func (bd *BugData) GetPeopleMap() PeopleMap

func (*BugData) GetTeamMap

func (bd *BugData) GetTeamMap() TeamMap

func (*BugData) Length

func (bd *BugData) Length() int

func (*BugData) Reconcile

func (bd *BugData) Reconcile() error

func (*BugData) Reconciler

func (bd *BugData) Reconciler(errs chan error)

type PeopleMap

type PeopleMap map[string][]*Bug

type TeamMap

type TeamMap map[string][]*Bug

func (TeamMap) CountAll

func (b TeamMap) CountAll(team string) int

func (TeamMap) CountLowSeverity

func (b TeamMap) CountLowSeverity(team string) int

func (TeamMap) CountNotLowSeverity

func (b TeamMap) CountNotLowSeverity(team string) int

func (TeamMap) CountNotReviewedInSprint

func (b TeamMap) CountNotReviewedInSprint(team string) int

func (TeamMap) CountReviewedInSprint

func (b TeamMap) CountReviewedInSprint(team string) int

func (TeamMap) CountTargetRelease

func (b TeamMap) CountTargetRelease(team string, targets []string) int

func (TeamMap) Teams

func (b TeamMap) Teams() []string

Jump to

Keyboard shortcuts

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