Versions in this module Expand all Collapse all v1 v1.0.0 Dec 9, 2018 Changes in this version + var ErrEmptyUser = errors.New("at least one should be present: org or owner") + type Config struct + Labels map[string]LabelConfig + ORG string + Owner string + ProjectRegex string + RemoveLabels []string + RenameLabels map[string]string + func ParseConfig(content []byte) (Config, error) + type GitRepository interface + CreateLabel func(ctx context.Context, user, repo, name string, label LabelConfig) error + DeleteLabel func(ctx context.Context, user, repo, name string) error + EditLabel func(ctx context.Context, user, repo, currentName, name string, label LabelConfig) error + ListLabels func(ctx context.Context, user, repo string) ([]string, error) + ListORGRepos func(ctx context.Context, org string) ([]*github.Repository, error) + ListOwnerRepos func(ctx context.Context, owner string) ([]*github.Repository, error) + type GithubRepositoryImpl struct + func NewGithubRepository(token string) *GithubRepositoryImpl + func (r GithubRepositoryImpl) CreateLabel(ctx context.Context, user, repo, name string, label LabelConfig) error + func (r GithubRepositoryImpl) DeleteLabel(ctx context.Context, user, repo, name string) error + func (r GithubRepositoryImpl) EditLabel(ctx context.Context, user, repo, currentName, name string, label LabelConfig) error + func (r GithubRepositoryImpl) ListLabels(ctx context.Context, user, repo string) ([]string, error) + func (r GithubRepositoryImpl) ListORGRepos(ctx context.Context, org string) ([]*github.Repository, error) + func (r GithubRepositoryImpl) ListOwnerRepos(ctx context.Context, owner string) ([]*github.Repository, error) + type LabelConfig struct + Color string + Description string + type Service struct + func NewService(git GitRepository, logger *log.Logger) *Service + func (s Service) Exec(ctx context.Context, cfg Config) error