in src/main/java/org/apache/maven/plugins/changes/github/GitHubDownloader.java [119:155]
protected Issue createIssue(GHIssue githubIssue) throws IOException {
Issue issue = new Issue();
issue.setKey(String.valueOf(githubIssue.getNumber()));
issue.setId(String.valueOf(githubIssue.getNumber()));
issue.setLink(this.githubIssueURL + githubIssue.getNumber());
issue.setCreated(githubIssue.getCreatedAt());
issue.setUpdated(githubIssue.getUpdatedAt());
if (githubIssue.getAssignee() != null) {
if (githubIssue.getAssignee().getName() != null) {
issue.setAssignee(githubIssue.getAssignee().getName());
} else {
issue.setAssignee(githubIssue.getAssignee().getLogin());
}
}
issue.setSummary(githubIssue.getTitle());
if (githubIssue.getMilestone() != null) {
issue.addFixVersion(githubIssue.getMilestone().getTitle());
}
issue.setReporter(githubIssue.getUser().getLogin());
issue.setStatus(githubIssue.getState().name());
final Collection<GHLabel> labels = githubIssue.getLabels();
if (labels != null && !labels.isEmpty()) {
issue.setType(labels.stream().findAny().get().getName());
}
return issue;
}