plugins

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PhlowLabels map[string]*PhlowLabel

PhlowLabels ... Map of labels in the phlow

Functions

func BranchNameFromIssue

func BranchNameFromIssue(issue int, name string) string

BranchNameFromIssue ... Converts issues to branch names nby removing illegal characters and inserting hyphens

func Colorizer added in v1.1.0

func Colorizer(label string) string

Colorizer ... Determines color based on label group

func IssueFromBranchName added in v1.1.0

func IssueFromBranchName(branch string) int

IssueFromBranchName ... Extracts the issue number from the branch name

func MilestoneColor added in v1.1.0

func MilestoneColor(milestone string) string

MilestoneColor ...

Types

type Assignee

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

Assignee ...

type AssigneeIssue added in v1.1.0

type AssigneeIssue struct {
	Login string `json:"login"`
}

AssigneeIssue ...

type AssigneeRequest added in v1.1.0

type AssigneeRequest struct {
	// contains filtered or unexported fields
}

AssigneeRequest ... request for assignees on GitHub

func (*AssigneeRequest) Set added in v1.1.0

func (a *AssigneeRequest) Set(assignee string, issue int) error

Set ... Set assignee on a GitHub Issue

type Auth

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

Auth ...

type AuthRequest added in v1.1.0

type AuthRequest struct {
	// contains filtered or unexported fields
}

AuthRequest ... request for authentication on GitHub

func (*AuthRequest) Auth added in v1.1.0

func (a *AuthRequest) Auth(user, pass string) (string, error)

Auth ... Auth request to github

type BranchRequest added in v1.1.0

type BranchRequest struct {
	// contains filtered or unexported fields
}

BranchRequest ... request for default branch on GitHub repository

func (*BranchRequest) Default added in v1.1.0

func (b *BranchRequest) Default() (string, error)

Default ... Get default branch of a GitHub issue

type GitHubRequest added in v1.1.0

type GitHubRequest struct {
	Assignee AssigneeRequest
	Issue    IssueRequest
	Label    LabelRequest
	Branch   BranchRequest
	Auth     AuthRequest
}

GitHubRequest ... request object for github

var GitHub GitHubRequest

GitHub ...

type IssueRequest added in v1.1.0

type IssueRequest struct {
	// contains filtered or unexported fields
}

IssueRequest ... request for GitHub issues

func (*IssueRequest) Get added in v1.1.0

func (i *IssueRequest) Get() ([]Issues, error)

Get ... Get All Issues from GitHub

type Issues

type Issues struct {
	Assignees []AssigneeIssue `json:"assignees"`
	Title     string          `json:"title"`
	Number    int             `json:"number"`
	Body      string          `json:"body"`
	Labels    []Label         `json:"labels"`
	Milestone Milestone       `json:"milestone"`
}

Issues ...

type Label

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

Label ...

type LabelRequest added in v1.1.0

type LabelRequest struct {
	// contains filtered or unexported fields
}

LabelRequest ... request for getting and setting labels on GitHub issues

func (*LabelRequest) Set added in v1.1.0

func (l *LabelRequest) Set(label string, issue int) ([]Label, error)

Set ... Set label on a GitHub issue

type Milestone added in v1.1.0

type Milestone struct {
	Title string `json:"title"`
}

type Permissions added in v1.1.1

type Permissions struct {
	Scopes []string `json:"scopes"`
	Note   string   `json:"note"`
}

Permissions ... data struct for permissions

type PhlowLabel added in v1.1.0

type PhlowLabel struct {
	Title string
	Group int
	ID    int
}

PhlowLabel ... label struct for storing GitHub labels

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