File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ cli.command('list', 'List changesets')
5151 . option ( '--versions' , 'Output only the available Unity versions' )
5252 . option ( '--minor-versions' , 'Output only the available Unity minor versions' )
5353 . option ( '--latest-patch' , 'Output only the latest Unity patch versions' )
54+ . option ( '--oldest-patch' , 'Output only the oldest Unity patch versions' )
5455 . action ( options => ( async ( ) => {
5556 var results = options . all
5657 ? ( await scrapeArchivedChangesets ( ) ) . concat ( await scrapeBetaChangesets ( options . latestPatch ) )
@@ -77,6 +78,10 @@ cli.command('list', 'List changesets')
7778 else if ( options . latestPatch ) {
7879 results = Object . values ( groupBy ( results , r => toMinor ( r . version ) ) ) . map ( g => g [ 0 ] ) ;
7980 }
81+ // Group by minor version and get oldest patch
82+ else if ( options . oldestPatch ) {
83+ results = Object . values ( groupBy ( results , r => toMinor ( r . version ) ) ) . map ( g => g [ g . length - 1 ] ) ;
84+ }
8085
8186 // Output versions
8287 if ( options . versions || options . minorVersions )
You can’t perform that action at this time.
0 commit comments