@@ -349,10 +349,10 @@ namespace :ci do
349349
350350 # Determine actual workflow files present, and prepare dynamic additions excluding specified files.
351351 existing_files = if Dir . exist? ( workflows_dir )
352- Dir [ File . join ( workflows_dir , "*.yml" ) ] + Dir [ File . join ( workflows_dir , "*.yaml" ) ]
353- else
354- [ ]
355- end
352+ Dir [ File . join ( workflows_dir , "*.yml" ) ] + Dir [ File . join ( workflows_dir , "*.yaml" ) ]
353+ else
354+ [ ]
355+ end
356356 existing_basenames = existing_files . map { |p | File . basename ( p ) }
357357
358358 # Reduce mapping choices to only those with a corresponding workflow file
@@ -456,11 +456,11 @@ namespace :ci do
456456 st = run [ "status" ]
457457 con = run [ "conclusion" ]
458458 emoji = case st
459- when "queued" then "⏳️"
460- when "in_progress" then "👟"
461- when "completed" then ( ( con == "success" ) ? "✅" : "🍅" )
462- else "⏳️"
463- end
459+ when "queued" then "⏳️"
460+ when "in_progress" then "👟"
461+ when "completed" then ( ( con == "success" ) ? "✅" : "🍅" )
462+ else "⏳️"
463+ end
464464 details = [ st , con ] . compact . join ( "/" )
465465 [ c , f , "#{ emoji } (#{ details } )#{ append } " ]
466466 else
@@ -471,22 +471,22 @@ namespace :ci do
471471 if choice && !choice . empty?
472472 # If user passed a filename directly (with or without extension), resolve it
473473 file = if mapping . key? ( choice )
474- mapping . fetch ( choice )
475- elsif !!( /\. (yml|yaml)\z / =~ choice )
476- # Accept either full basename (without ext) or basename with .yml/.yaml
477- choice
478- else
479- cand_yml = File . join ( workflows_dir , "#{ choice } .yml" )
480- cand_yaml = File . join ( workflows_dir , "#{ choice } .yaml" )
481- if File . file? ( cand_yml )
482- "#{ choice } .yml"
483- elsif File . file? ( cand_yaml )
484- "#{ choice } .yaml"
485- else
486- # Fall back to .yml for error messaging; will fail below
487- "#{ choice } .yml"
488- end
489- end
474+ mapping . fetch ( choice )
475+ elsif !!( /\. (yml|yaml)\z / =~ choice )
476+ # Accept either full basename (without ext) or basename with .yml/.yaml
477+ choice
478+ else
479+ cand_yml = File . join ( workflows_dir , "#{ choice } .yml" )
480+ cand_yaml = File . join ( workflows_dir , "#{ choice } .yaml" )
481+ if File . file? ( cand_yml )
482+ "#{ choice } .yml"
483+ elsif File . file? ( cand_yaml )
484+ "#{ choice } .yaml"
485+ else
486+ # Fall back to .yml for error messaging; will fail below
487+ "#{ choice } .yml"
488+ end
489+ end
490490 file_path = File . join ( workflows_dir , file )
491491 unless File . file? ( file_path )
492492 puts "Unknown option or missing workflow file: #{ choice } -> #{ file } "
@@ -591,10 +591,10 @@ namespace :ci do
591591 # Check for user input first (non-blocking)
592592 unless input_q . empty?
593593 selected = begin
594- input_q . pop ( true )
595- rescue
596- nil
597- end
594+ input_q . pop ( true )
595+ rescue
596+ nil
597+ end
598598 break if selected
599599 end
600600
0 commit comments