Documentation ¶
Overview ¶
Package generic represents generic issues and changelists.
Index ¶
- Constants
- func AuthoredChangelistsToCells(cls []*Changelist) []*sheets.Row
- func InferTimeRange(now time.Time, weekOf string) (start, end time.Time, err error)
- func IsMergedBefore(cl *Changelist, end time.Time) bool
- func IssuesToCells(username string, issues []*Issue) []*rsheets.Row
- func ReviewedChangelistsToCells(cls []*Changelist) []*sheets.Row
- type Changelist
- type ChangelistStatus
- type Issue
Constants ¶
View Source
const ( Abandoned = ChangelistStatus(iota) Draft New Merged Unknown )
Variables ¶
This section is empty.
Functions ¶
func AuthoredChangelistsToCells ¶
func AuthoredChangelistsToCells(cls []*Changelist) []*sheets.Row
func InferTimeRange ¶
InferTimeRange gets the start and end time for a weekly snippet report. If the optional weekOf parameter is provided, the time range is for the week in which the date falls, not inferred.
func IsMergedBefore ¶
func IsMergedBefore(cl *Changelist, end time.Time) bool
func ReviewedChangelistsToCells ¶
func ReviewedChangelistsToCells(cls []*Changelist) []*sheets.Row
Types ¶
type Changelist ¶
type Changelist struct { Number int Link string Subject string Message string Comments []string Branch string Author string Repo string Status ChangelistStatus MergedAt time.Time AssociatedIssues []*Issue AffectedFiles []string }
func (*Changelist) Category ¶
func (cl *Changelist) Category() string
type ChangelistStatus ¶
type ChangelistStatus int
func (ChangelistStatus) String ¶
func (status ChangelistStatus) String() string
Click to show internal directories.
Click to hide internal directories.