protected void executeReport()

in src/main/java/org/apache/maven/plugins/changes/github/GitHubChangesReport.java [163:196]


    protected void executeReport(Locale locale) throws MavenReportException {

        // Validate parameters
        List<Integer> columnIds = IssuesReportHelper.getColumnIds(columnNames, GITHUB_COLUMNS);
        if (columnIds.isEmpty()) {
            // This can happen if the user has configured column names and they are all invalid
            throw new MavenReportException(
                    "maven-changes-plugin: None of the configured columnNames '" + columnNames + "' are valid.");
        }

        try {
            // Download issues
            GitHubDownloader issueDownloader = new GitHubDownloader(project, includeOpenIssues, onlyMilestoneIssues);

            issueDownloader.configureAuthentication(settingsDecrypter, githubAPIServerId, settings, getLog());

            List<Issue> issueList = issueDownloader.getIssueList();

            if (onlyCurrentVersion) {
                issueList = IssueUtils.getIssuesForVersion(issueList, project.getVersion());
                getLog().info("The GitHub Report will contain issues only for the current version.");
            }

            // Generate the report
            IssuesReportRenderer report = new IssuesReportRenderer(getSink(), getBundle(locale), columnIds, issueList);
            report.render();

        } catch (MalformedURLException e) {
            // Rethrow this error so that the build fails
            throw new MavenReportException("The Github URL is incorrect - " + e.getMessage());
        } catch (Exception e) {
            throw new MavenReportException(e.getMessage(), e);
        }
    }