config

package
v0.0.0-...-cb8db6e Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Repositories []*Repository `json:"repositories"`
	Milestones   []*Milestone  `json:"milestones"`
	Labels       []*Label      `json:"labels"`
}

Config -

func ParseFile

func ParseFile(filename string) (*Config, error)

ParseFile -

type Configs

type Configs []Config

Configs -

type Label

type Label struct {
	Name          string   `json:"name"`
	Color         string   `json:"color"`
	PreviousNames []string `json:"previousNames,omitempty"`
	State         string   `json:"state,omitempty"`
}

Label -

func NewLabelFromGH

func NewLabelFromGH(g *github.Label) *Label

NewLabelFromGH - convert from github data model

func NewLabelsFromGH

func NewLabelsFromGH(gl []*github.Label) []*Label

NewLabelsFromGH - convert from github data model

func (*Label) Equals

func (l *Label) Equals(o *Label) bool

Equals - determine whether or not two labels are equal.

type Milestone

type Milestone struct {
	Title          string    `json:"title"`
	State          string    `json:"state"`
	Description    string    `json:"description"`
	DueOn          time.Time `json:"due_on"`
	PreviousTitles []string  `json:"previousTitles,omitempty"`
	Number         int       `json:"number,omitempty"`
}

Milestone -

func NewMilestoneFromGH

func NewMilestoneFromGH(g *github.Milestone) *Milestone

NewMilestoneFromGH - convert from github data model

func NewMilestonesFromGH

func NewMilestonesFromGH(gms []*github.Milestone) []*Milestone

NewMilestonesFromGH - convert from github data model

func (*Milestone) Equals

func (m *Milestone) Equals(o *Milestone) bool

Equals - determine whether or not two milestones are _mostly_ equal. The DueOn property must simply be within the same (UTC) day

type Repository

type Repository struct {
	User string
	Repo string
}

Repository -

func (*Repository) FromGH

func (r *Repository) FromGH(repo *github.Repository)

FromGH - convert from github data model

func (*Repository) String

func (r *Repository) String() string

func (*Repository) UnmarshalText

func (r *Repository) UnmarshalText(text []byte) (err error)

UnmarshalText -

Jump to

Keyboard shortcuts

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