Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blockers ¶
type Blockers struct { Repo map[OrgRepo][]Blocker `json:"repo,omitempty"` Branch map[OrgRepoBranch][]Blocker `json:"branch,omitempty"` }
Blockers holds maps of issues that are blocking various repos/branches.
func FindAll ¶
func FindAll(spc scmProviderClient, log *logrus.Entry, label, orgRepoTokens string) (Blockers, error)
FindAll finds issues with label in the specified orgs/repos that should block keeper.
func (Blockers) GetApplicable ¶
GetApplicable returns the subset of blockers applicable to the specified branch.
type Issue ¶
type Issue struct { Number githubql.Int Title githubql.String URL githubql.String Repository struct { Name githubql.String Owner struct { Login githubql.String } } }
Issue holds graphql response data about issues
type OrgRepoBranch ¶
type OrgRepoBranch struct {
Org, Repo, Branch string
}
OrgRepoBranch the org + repo + branch
Click to show internal directories.
Click to hide internal directories.