private static ChangelogEntry changelogEntry()

in log4j-changelog/src/main/java/org/apache/logging/log4j/changelog/importer/MavenChangesImporter.java [95:125]


    private static ChangelogEntry changelogEntry(final MavenChanges.Action action) {

        // Create the `type`
        final ChangelogEntry.Type type = changelogType(action.type);

        // Create the `issue`s
        final List<ChangelogEntry.Issue> issues = new ArrayList<>(1);
        if (action.issue != null) {
            final String issueLink = String.format("https://issues.apache.org/jira/browse/%s", action.issue);
            final ChangelogEntry.Issue issue = new ChangelogEntry.Issue(action.issue, issueLink);
            issues.add(issue);
        }

        // Create the `author`s
        final List<ChangelogEntry.Author> authors = new ArrayList<>(2);
        for (final String authorId : action.dev.split("\\s*,\\s*")) {
            if (!isBlank(authorId)) {
                authors.add(new ChangelogEntry.Author(authorId, null));
            }
        }
        if (action.dueTo != null) {
            authors.add(new ChangelogEntry.Author(null, action.dueTo));
        }

        // Create the `description`
        final ChangelogEntry.Description description = new ChangelogEntry.Description("asciidoc", action.description);

        // Create the instance
        return new ChangelogEntry(type, issues, authors, description);

    }