@@ -271,7 +271,7 @@ function fetchGitHub(url) {
271271}
272272
273273/**
274- * Get latest release for each stream (stable, gts, lts)
274+ * Get latest release for each stream (stable, lts)
275275 */
276276async function getLatestReleases ( ) {
277277 console . log ( "Fetching latest releases from GitHub..." ) ;
@@ -297,15 +297,11 @@ async function getLatestReleases() {
297297 r . tag_name . startsWith ( "stable-" ) ,
298298 ) ;
299299
300- // Find latest GTS release
301- const latestGts = bluefinReleases . find ( ( r ) => r . tag_name . startsWith ( "gts-" ) ) ;
302-
303300 // Find latest LTS release
304301 const latestLts = bluefinLtsReleases [ 0 ] ; // LTS releases all start with "lts."
305302
306303 return {
307304 stable : latestStable ,
308- gts : latestGts ,
309305 lts : latestLts ,
310306 } ;
311307}
@@ -434,17 +430,15 @@ async function updateDocument() {
434430 const releases = await getLatestReleases ( ) ;
435431
436432 // Validate releases were found
437- if ( ! releases . stable || ! releases . gts || ! releases . lts ) {
433+ if ( ! releases . stable || ! releases . lts ) {
438434 console . error ( "❌ Failed to fetch all required releases" ) ;
439435 console . error ( " Stable:" , releases . stable ?. tag_name || "NOT FOUND" ) ;
440- console . error ( " GTS:" , releases . gts ?. tag_name || "NOT FOUND" ) ;
441436 console . error ( " LTS:" , releases . lts ?. tag_name || "NOT FOUND" ) ;
442437 process . exit ( 1 ) ;
443438 }
444439
445440 console . log ( "Latest releases:" ) ;
446441 console . log ( "- Stable:" , releases . stable . tag_name ) ;
447- console . log ( "- GTS:" , releases . gts . tag_name ) ;
448442 console . log ( "- LTS:" , releases . lts . tag_name ) ;
449443
450444 // Find the table sections and insert new rows
@@ -500,49 +494,6 @@ async function updateDocument() {
500494 i ++ ;
501495 }
502496 continue ;
503- } else if ( line === "## Bluefin GTS" ) {
504- // Copy section header
505- newContent += line + "\n" ;
506- i ++ ;
507- // Skip any blank lines after the section header
508- while ( i < lines . length && lines [ i ] . trim ( ) === "" ) {
509- newContent += lines [ i ] + "\n" ;
510- i ++ ;
511- }
512- // Copy table header rows
513- newContent += lines [ i ] + "\n" ; // Table header row 1
514- i ++ ;
515- newContent += lines [ i ] + "\n" ; // Table header row 2
516- i ++ ;
517- // Check if the first row is already the latest GTS
518- let firstRowTag = null ;
519- if ( i < lines . length && lines [ i ] . startsWith ( "|" ) ) {
520- firstRowTag = lines [ i ] . match ( / \| \s * \* \* ( [ ^ * ] + ) \* \* / ) ?. [ 1 ] ;
521- }
522- if ( firstRowTag !== releases . gts . tag_name ) {
523- // Insert new row at the top
524- const newRow = await formatTableRow ( releases . gts , "gts" ) ;
525- newContent += newRow + "\n" ;
526- console . log ( `✅ Added new GTS release: ${ releases . gts . tag_name } ` ) ;
527- } else {
528- console . log (
529- `ℹ️ GTS release ${ releases . gts . tag_name } already exists at top` ,
530- ) ;
531- }
532-
533- // Continue with existing rows, deduplicating by tag name
534- const seenGtsTags = new Set ( [ releases . gts . tag_name ] ) ;
535- while ( i < lines . length && lines [ i ] . startsWith ( "|" ) ) {
536- const rowTag = lines [ i ] . match ( / \| \s * \* \* ( [ ^ * ] + ) \* \* / ) ?. [ 1 ] ;
537- if ( ! rowTag || ! seenGtsTags . has ( rowTag ) ) {
538- if ( rowTag ) seenGtsTags . add ( rowTag ) ;
539- newContent += lines [ i ] + "\n" ;
540- } else {
541- console . log ( `ℹ️ Skipping duplicate row: ${ rowTag } ` ) ;
542- }
543- i ++ ;
544- }
545- continue ;
546497 } else if ( line === "## Bluefin LTS" ) {
547498 // Copy section header
548499 newContent += line + "\n" ;
0 commit comments