public void consume(ChangeInfo changeDetails) {
Optional<GitRepository> gitRepository = gerritGitUtil.getRepositoryForGerritProject(project, changeDetails.project);
if (!gitRepository.isPresent()) return;
FetchInfo firstFetchInfo = gerritUtil.getFirstFetchInfo(changeDetails);
if (firstFetchInfo == null) {
return;
}
String ref = firstFetchInfo.ref;
String url = firstFetchInfo.url;