Documentation
¶
Index ¶
- Variables
- func BranchNameFromIssue(issue int, name string) string
- func Colorizer(label string) string
- func IssueFromBranchName(branch string) int
- func MilestoneColor(milestone string) string
- type Assignee
- type AssigneeIssue
- type AssigneeRequest
- type Auth
- type AuthRequest
- type BranchRequest
- type GitHubRequest
- type IssueRequest
- type Issues
- type Label
- type LabelRequest
- type Milestone
- type Permissions
- type PhlowLabel
- type Repo
Constants ¶
This section is empty.
Variables ¶
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 MilestoneColor ¶ added in v1.1.0
MilestoneColor ...
Types ¶
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
type AuthRequest ¶ added in v1.1.0
type AuthRequest struct {
// contains filtered or unexported fields
}
AuthRequest ... request for authentication on 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
type Permissions ¶ added in v1.1.1
Permissions ... data struct for permissions
type PhlowLabel ¶ added in v1.1.0
PhlowLabel ... label struct for storing GitHub labels