data

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UTCDate added in v0.0.3

func UTCDate(ts Tags, is Issues, mrs MRs)

UTCDate sets all time within data to the UTC

Types

type Issue

type Issue struct {
	ID         int
	Name       string
	ClosedDate time.Time
	URL        string
	Labels     []string
}

Issue describes an issue in the bug tracker

type Issues

type Issues []Issue

Issues is a slice with Issue elements

func FilterIssues added in v0.0.3

func FilterIssues(is Issues, fromDate, toDate time.Time) Issues

FilterIssues filters and returns new slice of Issues, where ClosedDate is between given dates

func FilterIssuesByLabel added in v0.0.3

func FilterIssuesByLabel(is Issues, withoutLabels []string) Issues

FilterIssuesByLabel filters out the issues with given labels

func (*Issues) Len

func (is *Issues) Len() int

Len implements the Sort.Interface

func (*Issues) Less

func (is *Issues) Less(i, j int) bool

Less implements the Sort.Interface

func (*Issues) Swap

func (is *Issues) Swap(i, j int)

Swap implements the Sort.Interface

type MR

type MR struct {
	ID         int
	Name       string
	URL        string
	Author     string
	AuthorURL  string
	MergedDate time.Time
	Labels     []string
}

MR describes a Pull or Merge Request

type MRs

type MRs []MR

MRs is a slice with MR elements

func FilterMRs added in v0.0.3

func FilterMRs(m MRs, fromDate, toDate time.Time) MRs

FilterMRs filters and returns new slice of Issues, where ClosedDate is between given dates

func FilterMRsByLabel added in v0.0.3

func FilterMRsByLabel(m MRs, withoutLabels []string) MRs

FilterMRsByLabel filters out the MRs with given labels

func (*MRs) Len

func (m *MRs) Len() int

Len implements the Sort.Interface

func (*MRs) Less

func (m *MRs) Less(i, j int) bool

Less implements the Sort.Interface

func (*MRs) Swap

func (m *MRs) Swap(i, j int)

Swap implements the Sort.Interface

type Release

type Release struct {
	Release    string
	ReleaseURL string
	Date       string
	Issues     Issues
	MRs        MRs
}

Release desribes a release with it data

type Releases

type Releases []Release

Releases is a slice with Release elements

func NewReleases

func NewReleases(tags Tags, issues Issues, mrs MRs) Releases

NewReleases builds the Releases structure using given data from connector

type Tag

type Tag struct {
	Name   string
	Commit string
	Date   time.Time
	URL    string
}

Tag describes a git tag

type Tags

type Tags []Tag

Tags is a slice with Tag elements

func FilterTags added in v0.0.3

func FilterTags(ts Tags, regexp *regexp.Regexp) Tags

FilterTags filters the tags based on the regexp and tag names

func (*Tags) Len

func (t *Tags) Len() int

Len implements the Sort.Interface

func (*Tags) Less

func (t *Tags) Less(i, j int) bool

Less implements the Sort.Interface

func (*Tags) Swap

func (t *Tags) Swap(i, j int)

Swap implements the Sort.Interface

Jump to

Keyboard shortcuts

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