plugins

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//AuthURL ...
	AuthURL = "https://api.github.com/authorizations"
	//RepoURL ...
	RepoURL = "https://api.github.com/repos/"
)
View Source
var (
	//LabelActionAwating ...
	LabelActionAwating = "Action - awaiting feed-back"
	//LabelActionGroomig ...
	LabelActionGroomig = "Action - needs grooming"
	//LabelPrioOne ...
	LabelPrioOne = "Prio 1 - must have"
	//LabelPrioTwo ...
	LabelPrioTwo = "Prio 2 - should have"
	//LabelPrioThree ...
	LabelPrioThree = "Prio 3 - could have"
	//LabelPrioFour ...
	LabelPrioFour = "Prio 4 - won't have"
	//LabelSizeSmall ...
	LabelSizeSmall = "Size 1 - small"
	//LabelSizeMedium ...
	LabelSizeMedium = "Size 2 - medium"
	//LabelSizeLarge ...
	LabelSizeLarge = "Size 3 - large"
	//LabelSizeTooBig ...
	LabelSizeTooBig = "Size 4 - too big"
	//LabelStatusDublicate ...
	LabelStatusDublicate = "Status - duplicate"
	//LabelStatusWorkable ...
	LabelStatusWorkable = "Status - workable"
	//LabelStatusInProgress ...
	LabelStatusInProgress = "Status - in progress"
	//LabelStatusUpNext ...
	LabelStatusUpNext = "Status - up next"
)

Functions

func Authorize

func Authorize(user, pass, url string) (string, error)

Authorize ...

func BranchNameFromIssue

func BranchNameFromIssue(issue int, name string) string

BranchNameFromIssue ...

func GetDefaultBranch

func GetDefaultBranch(url string) (string, error)

GetDefaultBranch ...

func SetAssignee

func SetAssignee(assignee, url, token string, number int, info *githandler.RemoteInfo) error

SetAssignee ... Sets you as an assignee

Types

type Assignee

type Assignee struct {
	Assignees []string `json:"assignees"`
}

Assignee ...

type Auth

type Auth struct {
	Token string `json:"token"`
}

Auth ...

type Issues

type Issues struct {
	Title  string `json:"title"`
	Number int    `json:"number"`
}

Issues ...

func GetOpenIssues

func GetOpenIssues(url string) ([]Issues, error)

GetOpenIssues ...

type Label

type Label struct {
	ID    int    `json:"id"`
	URL   string `json:"url"`
	Name  string `json:"name"`
	Color string `json:"color"`
}

Label ...

func SetLabel

func SetLabel(label, url, token string, number int, info *githandler.RemoteInfo) ([]Label, error)

SetLabel ...

type Repo

type Repo struct {
	DefaultBranch string `json:"default_branch"`
}

Repo ...

Jump to

Keyboard shortcuts

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