Documentation
¶
Index ¶
- Variables
- func BranchNameFromIssue(issue int, name string) string
- func GroupID(name string) int
- func IssueFromBranchName(branch string) int
- func NewPWRequest() *pluginWebRequest
- type Assignee
- type AssigneeIssue
- type Auth
- type GhPermissions
- type GitHubImpl
- func (g *GitHubImpl) Auth(user, pass string) (token string, err error)
- func (g *GitHubImpl) Default() (defUrl string, err error)
- func (g *GitHubImpl) GetIssues() (issues []Issues, err error)
- func (g *GitHubImpl) SetAssignee(assignee string, issue int) (err error)
- func (g *GitHubImpl) SetLabel(label string, issue int) (labels []Label, err error)
- func (p GitHubImpl) URLNoEsc(URL string) string
- type Issues
- type Label
- type Milestone
- type PhlowLabel
- type Repo
Constants ¶
This section is empty.
Variables ¶
View Source
var PhlowLabels map[string]*PhlowLabel
PhlowLabels ... Map of labels in the phlow
Functions ¶
func BranchNameFromIssue ¶
BranchNameFromIssue ... Converts issues to branch names nby removing illegal characters and inserting hyphens
func IssueFromBranchName ¶ added in v1.1.0
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 AssigneeIssue ¶ added in v1.1.0
type AssigneeIssue struct {
Login string `json:"login"`
}
AssigneeIssue ...
type GhPermissions ¶ added in v1.1.5
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
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 PhlowLabel ¶ added in v1.1.0
PhlowLabel ... label struct for storing GitHub labels
Click to show internal directories.
Click to hide internal directories.