class ComponentRepoServiceImpl implements ComponentRepoService {

	@Override
	public List<ComponentRepoInfo> findUserComponentRepos(Integer userId) {
		var version = "master";
		List<String> stdRepos = findAllStdGitRepo();
		return componentRepoDao
				.findAllByCreateUserIdOrderByGitRepoName(userId)
				.stream()
				.map(componentRepo -> {
					componentRepo.setStd(stdRepos.stream().anyMatch(gitUrl -> gitUrl.equals(componentRepo.getGitRepoUrl())));
					return getComponentRepoVersionAndApiRepoVersion(version, componentRepo, stdRepos);
				})
				.collect(Collectors.toList());
	}

}