You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2015/12/06 11:49:10 UTC

svn commit: r1718158 - /maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMojo.java

Author: olamy
Date: Sun Dec  6 10:49:10 2015
New Revision: 1718158

URL: http://svn.apache.org/viewvc?rev=1718158&view=rev
Log:
MCHANGES-363: Add support for opened issues in announcement Mojo

Generate announcement file including current opened issues.
Really handy if you want to test your announcement chain without having to actually commit your changes or close issues on github.

It is currently supported when you generate the github report but not supported when you generate the github announcement.

Closes MCHANGES-363

Modified:
    maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMojo.java

Modified: maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMojo.java?rev=1718158&r1=1718157&r2=1718158&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMojo.java (original)
+++ maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMojo.java Sun Dec  6 10:49:10 2015
@@ -446,6 +446,12 @@ public class AnnouncementMojo
     @Parameter( defaultValue = "github" )
     private String githubAPIServerId;
 
+    /**
+     * Boolean which says if we should include open github issues in the announcement.
+     */
+    @Parameter( defaultValue = "false" )
+    private boolean includeOpenIssues;
+
     private ReleaseUtils releaseUtils = new ReleaseUtils( getLog() );
 
     private ChangesXML xml;
@@ -838,7 +844,7 @@ public class AnnouncementMojo
         try
         {
             GitHubDownloader issueDownloader =
-                new GitHubDownloader( project, githubAPIScheme, githubAPIPort, false, true );
+                new GitHubDownloader( project, githubAPIScheme, githubAPIPort, includeOpenIssues, true );
 
             issueDownloader.configureAuthentication( githubAPIServerId, settings, getLog() );