}
public static List<Issue> getGitIssuesFromRepository(Repository gitRepo, boolean open, boolean closed, OutLog out) {
List<Issue> issues = new ArrayList<Issue>();
try {
IssueService issueServ = new IssueService(AuthServices.getGitHubClient());
HashMap<String, String> params = new HashMap<String, String>();
if (open) {
List<Issue> opensIssues;
out.printLog("Baixando Issues Abertas...\n");
params.put("state", "open");
opensIssues = issueServ.getIssues(gitRepo, params);
out.printLog(opensIssues.size() + " Issues abertas baixadas!");
issues.addAll(opensIssues);
}
if (closed) {
List<Issue> clodesIssues;
params = new HashMap<String, String>();
out.printLog("Baixando Issues Fechadas...\n");
params.put("state", "closed");
clodesIssues = issueServ.getIssues(gitRepo, params);
out.printLog(clodesIssues.size() + " Issues fechadas baixadas!");
issues.addAll(clodesIssues);
}
out.printLog(issues.size() + " Issues baixadas no total!");
} catch (Exception ex) {