(refactor) adds preflight checks for getAllRepos