Class: Inquirex::Tools::Commands::Changelogs

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/inquirex/tools/commands/changelogs.rb

Overview

Regenerates CHANGELOG.md across the ecosystem from merged GitHub PRs.

Instance Method Summary collapse

Instance Method Details

#call(repos: []) ⇒ void

This method returns an undefined value.

The GitHub token comes from gh auth token, so no secret is stored or passed on the command line. inquirex/INQUIREX_VERSION_LOG.md is hand-written and never touched.

Parameters:

  • repos (Array<String>, nil) (defaults to: [])


24
25
26
27
28
29
# File 'lib/inquirex/tools/commands/changelogs.rb', line 24

def call(repos: [], **)
  exit(1) unless Inquirex::Tools::Changelogs.new.generate(*Array(repos))
rescue Inquirex::Tools::Error => e
  warn "ERROR: #{e.message}"
  exit 1
end