private void minerMilestones(List<Milestone> gitMilestones) {
EntityRepository repository = dao.findByID(repositoryToMinerId, EntityRepository.class);
int i = 0;
calculeSubProgress(i, gitMilestones.size());
while (!canceled && i < gitMilestones.size()) {
Milestone gitMilestone = gitMilestones.get(i);
EntityMilestone milestone = minerMilestone(gitMilestone, repository);
repository.addMilestone(milestone);
dao.edit(milestone);
i++;
calculeSubProgress(i, gitMilestones.size());