You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/12/03 12:10:49 UTC

[GitHub] [netbeans] mbien opened a new pull request, #5044: added more categories for the release notes generator.

mbien opened a new pull request, #5044:
URL: https://github.com/apache/netbeans/pull/5044

   needs more categories since the `other` section is quite large still.
   
   going to try to update older releases after this is merged by doing some boolean algebra on release notes :)
   
   ```java
   public class RetroNoter2000 {
   
       public static void main(String[] args) throws IOException {
   
           Path base = Path.of("/home/mbien/NetBeansProjects/RetroNoter2000/");
   
           // second last file is the release of interest
           List<String> files = List.of(
               "HEAD_16.txt",
               "HEAD_15.txt"
   //            "HEAD_14.txt",
   //            "HEAD_13.txt",
   //            "HEAD_126.txt",
   //            "HEAD_125.txt"
           );
   
           Set<String> filter = new HashSet<>();
           for (int i = 0; i < files.size()-1; i++) {
               filter.addAll(readPRsAsSet(base.resolve(files.get(i))));
           }
   
           Path previous = base.resolve(files.get(files.size()-1)); // tag before release of interest
   
           try (Stream<String> lines = Files.lines(previous)) {
               List<String> notes = lines.filter((line) -> !filter.contains(line)).toList();
               notes = notes.subList(0, notes.indexOf("## New Contributors"));
               notes.forEach(System.out::println);
           }
       }
   
       // reads only the changes as Set
       private static Set<String> readPRsAsSet(Path path) throws IOException {
           try (Stream<String> lines = Files.lines(path)) {
               return lines.filter((l) -> l.startsWith("* "))
                           .collect(Collectors.toSet());
           }
       }
   
   }
   ```


-- 
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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] mbien commented on pull request #5044: added more categories for the release notes generator.

Posted by GitBox <gi...@apache.org>.
mbien commented on PR #5044:
URL: https://github.com/apache/netbeans/pull/5044#issuecomment-1336151598

   updated NB 16 release:
   https://github.com/apache/netbeans/releases/tag/16
   
   older releases will need some manual re-labeling first since many PRs are not labeled.


-- 
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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] mbien merged pull request #5044: added more categories for the release notes generator.

Posted by GitBox <gi...@apache.org>.
mbien merged PR #5044:
URL: https://github.com/apache/netbeans/pull/5044


-- 
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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists