Class: Inquirex::Tools::Commands::Changelogs
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Inquirex::Tools::Commands::Changelogs
- Defined in:
- lib/inquirex/tools/commands/changelogs.rb
Overview
Regenerates CHANGELOG.md across the ecosystem from merged GitHub PRs.
Instance Method Summary collapse
-
#call(repos: []) ⇒ void
The GitHub token comes from
gh auth token, so no secret is stored or passed on the command line.
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.
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.}" exit 1 end |