Class: CovLoupe::Scripts::LatestCiStatus

Inherits:
Object
  • Object
show all
Includes:
CommandExecution
Defined in:
lib/cov_loupe/scripts/latest_ci_status.rb

Instance Method Summary collapse

Methods included from CommandExecution

#abort_with, #command_exists?, #run_command, #run_command_with_status

Instance Method Details

#callObject



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/cov_loupe/scripts/latest_ci_status.rb', line 11

def call
  branch = fetch_current_branch
  puts "Fetching latest CI run for branch: #{branch}..."

  run_data = fetch_latest_run(branch)

  if run_data.nil?
    puts "No workflow runs found for branch '#{branch}'."
    return
  end

  display_run_details(run_data)
end