Sha256: fb0e2d4b8f6431120471524b41fc578729c574b56b9a8979e0318893d0eb9ff3

Contents?: true

Size: 548 Bytes

Versions: 2

Compression:

Stored size: 548 Bytes

Contents

# frozen_string_literal: true

desc "Generate a Changelog"
task :changelog do
  # rubocop:disable Style/MutableConstant
  CHANGELOG_CMD ||= %w[
    github_changelog_generator
    -u
    mhenrixon
    -p
    stub_requests
    --no-verbose
    --token
  ]
  ADD_CHANGELOG_CMD      ||= "git add --all"
  COMMIT_CHANGELOG_CMD   ||= "git commit -a -m 'Update changelog'"
  # rubocop:enable Style/MutableConstant

  sh("git checkout master")
  sh(*CHANGELOG_CMD.push(ENV["CHANGELOG_GITHUB_TOKEN"]))
  sh(ADD_CHANGELOG_CMD)
  sh(COMMIT_CHANGELOG_CMD)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stub_requests-0.1.11 lib/tasks/changelog.rake
stub_requests-0.1.10 lib/tasks/changelog.rake