private void minerPullRequests(List<PullRequest> gitPullRequests, Repository gitRepo) throws Exception {
EntityRepository repository = dao.findByID(repositoryToMinerId, EntityRepository.class);
int i = 0;
calculeSubProgress(i, gitPullRequests.size());
while (!canceled && i < gitPullRequests.size()) {
PullRequest gitPull = gitPullRequests.get(i);
EntityPullRequest pullRequest = minerPullRequest(gitPull);
if (pullRequest.getIssue() == null) {
EntityIssue issue = IssueServices.getIssueByNumber(gitPull.getNumber(), repository, dao);
if (issue != null) {
issue.setPullRequest(pullRequest);
pullRequest.setIssue(issue);
}
}