plugins

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2017 License: MIT Imports: 12 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 GroupID added in v1.1.5

func GroupID(name string) int

GroupID ...

func IssueFromBranchName added in v1.1.0

func IssueFromBranchName(branch string) int

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

func NewPWRequest added in v1.1.5

func NewPWRequest() *pluginWebRequest

NewPWRequest ... Creates a new pluginWebRequest

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 Auth

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

Auth ...

type GhPermissions added in v1.1.5

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

GhPermissions ... data struct for permissions

type GitHubImpl added in v1.1.5

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

GitHubImpl ... GitHub api implementation

var GitHub *GitHubImpl

func (*GitHubImpl) Auth added in v1.1.5

func (g *GitHubImpl) Auth(user, pass string) (token string, err error)

Auth ... Auth request to gh

func (*GitHubImpl) Default added in v1.1.5

func (g *GitHubImpl) Default() (defUrl string, err error)

Default ... Get default branch of a GitHub issue

func (*GitHubImpl) GetIssues added in v1.1.5

func (g *GitHubImpl) GetIssues() (issues []Issues, err error)

GetIssues ...

func (*GitHubImpl) SetAssignee added in v1.1.5

func (g *GitHubImpl) SetAssignee(assignee string, issue int) (err error)

SetAssignee ... Set assignee on a GitHub Issue

func (*GitHubImpl) SetLabel added in v1.1.5

func (g *GitHubImpl) SetLabel(label string, issue int) (labels []Label, err error)

SetLabel ...

func (GitHubImpl) URLNoEsc added in v1.1.5

func (p GitHubImpl) URLNoEsc(URL string) string

URLNoEsc ... returns full path of url

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 Milestone added in v1.1.0

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

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