Documentation ¶
Index ¶
Constants ¶
View Source
const ( ColumnInDevelopment = "In Development" ColumnWaitingForMerge = "Ready for Merge" ColumnWaitingForDeploy = "" ColumnInProgress = "In Progress" ColumnWaitingForUAT = "UAT" ColumnDone = "Done" ColumnClosed = "Closed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnMapping ¶
func (ColumnMapping) ReverseLookup ¶
func (c ColumnMapping) ReverseLookup(name string) string
type Issue ¶
type Issue struct { ID string `yaml:"number,omitempty"` Org string `yaml:"org,omitempty"` Repo string `yaml:"repo,omitempty"` Body string `yaml:"body,omitempty"` Assignee string `yaml:"assignee,omitempty"` Assignees []string `yaml:"assignees,omitempty"` Milestone *int `yaml:"milestone,omitempty"` Estimate int `yaml:"estimate,omitempty"` Epics []string `yaml:"epics,omitempty"` Releases []string `yaml:"releases,omitempty"` Title string `yaml:"title,omitempty"` ProgressState string `yaml:"progressState,omitempty"` ProgressStateID int `yaml:"progressStateId,omitempty"` BranchPattern string `yaml:"branchPattern,omitempty"` Labels []string `yaml:"labels,omitempty"` IsClosed bool `yaml:"isClosed,omitempty"` GithubRepoID *int64 `yaml:"githubRepoId,omitempty"` MappedProgressState string `yaml:"mappedProgressState,omitempty"` }
func GetIssuesFromRefs ¶
func GetIssuesFromRefs(svc IssueService, refs []IssueRef) ([]Issue, error)
func GetIssuesFromRefsErr ¶
func GetIssuesFromRefsErr(svc IssueService, refs []IssueRef, err error) ([]Issue, error)
type IssueRef ¶
func NewIssueRef ¶
func ParseIssueRef ¶
func (*IssueRef) MarshalYAML ¶
func (*IssueRef) UnmarshalYAML ¶
type IssueService ¶
type IssueService interface { // Assign the user who created the task, attach body and milestone Create(issue Issue) (string, error) // Add dependency relationship : the newly created task should be a dependency of the issue issue on the ZenHub board AddDependency(from, to IssueRef, parentIssueNum string) error RemoveDependency(from, to IssueRef) error // Put the task and depending issue into In Progress column on the ZenHub board SetProgress(issue IssueRef, column string) error ChangeLabels(ref IssueRef, add []string, remove []string) error GetParentRefs(issue IssueRef) ([]IssueRef, error) GetChildRefs(issue IssueRef) ([]IssueRef, error) GetIssue(issue IssueRef) (Issue, error) GetClosedIssue(org, repoName string) ([]int, error) }
type RepoRef ¶
func ParseRepoRef ¶
func (RepoRef) MarshalYAML ¶
func (RepoRef) OrgAndRepo ¶
func (*RepoRef) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.