Documentation ¶
Index ¶
- Variables
- func DetermineConfig(c *cli.Context) (*types.Config, error)
- func ExtractQualifiedRepos(repos []*github.Repository) []*types.Repo
- func GetAllRepos(c *cli.Context, client *types.Client) []*github.Repository
- func GetDefaultConfig() string
- func SyncLabels(repo *types.Repo, client *types.Client, labels *types.Config, id int) error
- func ValidateOrgUserArgs(c *cli.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var SyncAllUsageText = `
This process will pull all repositories associated with a User or Organization
and perform the sync label action on all qualifying repositories.
A repository qualifies for label sync if is is NOT archived and NOT a fork.
` + customConfigText
View Source
var SyncRepoUsageText = `
This process will perform the sync label action on all a single repository
provided via the ` + "`--repo, r`" + ` flag.
` + customConfigText
Functions ¶
func DetermineConfig ¶
func ExtractQualifiedRepos ¶
func ExtractQualifiedRepos(repos []*github.Repository) []*types.Repo
ExtractQualifiedRepos ensures we only action on non-archived and non-fork repos
func GetAllRepos ¶
func GetAllRepos(c *cli.Context, client *types.Client) []*github.Repository
GetAllRepos retrieves all repos for an Organization or User
func GetDefaultConfig ¶
func GetDefaultConfig() string
func SyncLabels ¶
SyncLabels will apply the provided Labels Config to a given repo.
func ValidateOrgUserArgs ¶
func ValidateOrgUserArgs(c *cli.Context) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.