Skip to content

Commit

Permalink
manager: allow disable repos (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzh authored Dec 29, 2020
1 parent 0a5b87b commit cf40cc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ func NewManager(config *config.Config) (*Manager, error) {
logger: logrus.WithField("manager", ""),
}
for _, repoConfig := range config.Repos {
if disabled, ok := repoConfig["disabled"].(bool); ok && disabled {
continue
}
w, err := worker.NewWorker(repoConfig)
if err != nil {
return nil, err
Expand Down

0 comments on commit cf40cc3

Please sign in to comment.