Only check for labels when a repo is defined.