Documentation
¶
Index ¶
- func Make() (*cobra.Command, error)
- func ValidateParams(params []string) func(cmd *cobra.Command, args []string) error
- type Filter
- func GetFilterForAuthors(authors []string) *Filter
- func GetFilterForCreatedTime(duration time.Duration) *Filter
- func GetFilterForLabels(labels []string, and bool) *Filter
- func GetFilterForLabelsAnd(labels []string) *Filter
- func GetFilterForLabelsOr(labels []string) *Filter
- func GetFilterForMilestone(milestoneRaw string) *Filter
- func GetFilterForTitleRegex(pattern string) (*Filter, error)
- func GetFilterForUpdatedTime(duration time.Duration) *Filter
- type FlagData
- func (f FlagData) BuildCmd(buildTypeID, branch, testRegex, service string) error
- func (f FlagData) BuildResultsCmd(buildID int) error
- func (f FlagData) BuildResultsForPRCmd(pr int) error
- func (f FlagData) GetAndRunPrsTests(prs map[int]string, testRegExParam string) error
- func (f FlagData) GetFilters() ([]Filter, error)
- func (f FlagData) GetPrTests(number int, title string) (*map[string][]string, error)
- func (f FlagData) NewRepo() GithubRepo
- func (f FlagData) NewServer() TcServer
- type FlagsGitHub
- type FlagsGitHubPrFilter
- type FlagsTeamCity
- type FlagsTeamCityBuild
- type GithubRepo
- func (gr GithubRepo) GetAllPullRequestFiles(pri int, filterRegExStr string) (*map[string]struct{}, error)
- func (gr GithubRepo) ListAllPullRequestFiles(pri int, cb func([]*github.CommitFile, *github.Response) error) error
- func (gr GithubRepo) PrTests(pri int, filterRegExStr, splitTestsAt string) (*map[string][]string, error)
- type TcServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Filter ¶ added in v0.6.0
type Filter struct {
Name string
PR func(github.PullRequest) (bool, error) // todo shjould this return an error?
}
func GetFilterForAuthors ¶ added in v0.6.0
func GetFilterForCreatedTime ¶ added in v0.6.0
func GetFilterForLabels ¶ added in v0.6.0
func GetFilterForLabelsAnd ¶ added in v0.6.0
func GetFilterForLabelsOr ¶ added in v0.6.0
func GetFilterForMilestone ¶ added in v0.6.0
func GetFilterForTitleRegex ¶ added in v0.6.0
func GetFilterForUpdatedTime ¶ added in v0.6.0
type FlagData ¶
type FlagData struct {
GH FlagsGitHub
TC FlagsTeamCity
OpenInBrowser bool
RunAllTests bool
}
func (FlagData) BuildResultsCmd ¶ added in v0.6.0
func (FlagData) BuildResultsForPRCmd ¶ added in v0.6.0
func (FlagData) GetAndRunPrsTests ¶ added in v0.6.0
func (FlagData) GetFilters ¶ added in v0.6.0
func (FlagData) GetPrTests ¶ added in v0.6.0
func (FlagData) NewRepo ¶ added in v0.6.0
func (f FlagData) NewRepo() GithubRepo
type FlagsGitHub ¶ added in v0.6.0
type FlagsGitHub struct {
Token string
Repo string
FileRegEx string
SplitTestsOn string
FilterPRs FlagsGitHubPrFilter
}
type FlagsGitHubPrFilter ¶ added in v0.6.0
type FlagsTeamCity ¶ added in v0.6.0
type FlagsTeamCity struct {
Build FlagsTeamCityBuild
ServerURL string
Token string
User string
Pass string
}
type FlagsTeamCityBuild ¶ added in v0.6.0
type GithubRepo ¶
wrap the common gh lib shared with my other tools. splits common GH code from this CLI tool's specific tooling code
func (GithubRepo) GetAllPullRequestFiles ¶ added in v0.6.0
func (gr GithubRepo) GetAllPullRequestFiles(pri int, filterRegExStr string) (*map[string]struct{}, error)
func (GithubRepo) ListAllPullRequestFiles ¶ added in v0.6.0
func (gr GithubRepo) ListAllPullRequestFiles(pri int, cb func([]*github.CommitFile, *github.Response) error) error
Click to show internal directories.
Click to hide internal directories.