slawekjaranowski commented on code in PR #91:
URL: 
https://github.com/apache/maven-changes-plugin/pull/91#discussion_r1868423173


##########
src/main/java/org/apache/maven/plugins/changes/announcement/AnnouncementMojo.java:
##########
@@ -665,6 +676,12 @@ protected List<Release> getJiraReleases() throws 
MojoExecutionException {
                         + " that matched the versionPrefix '" + versionPrefix 
+ "'.");
             }
 
+            if (onlyCurrentVersion) {
+                String version = (versionPrefix == null ? "" : versionPrefix) 
+ project.getVersion();
+                issueList = IssueUtils.getIssuesForVersion(issueList, version);
+                getLog().info("The JIRA Report will contain issues only for 
the current version.");

Review Comment:
   It is the same in jira report, by the way this should be also refactored 
.... 
   `jiraDownloader` should does such work



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to