skip inactive cron repos

This commit is contained in:
Brad Rydzewski 2020-03-10 13:30:30 -07:00
parent becca71e83
commit 32f286e1ed

View file

@ -131,6 +131,11 @@ func (s *Scheduler) run(ctx context.Context) error {
continue
}
if repo.Active == false {
logger.Traceln("cron: skip inactive repository")
continue
}
// TODO(bradrydzewski) we may actually need to query the branch
// first to get the sha, and then query the commit. This works fine
// with github and gitlab, but may not work with other providers.