Sha256: 0b2ee8355613fcc201719bd21c956f2955d0d17eee0d843b9f2032678352378f

Contents?: true

Size: 524 Bytes

Versions: 11

Compression:

Stored size: 524 Bytes

Contents

# frozen_string_literal: true

# rubocop:disable Style/MutableConstant
CHANGELOG_CMD = %w[
  github_changelog_generator
  --no-verbose
  --user
  mhenrixon
  --project
  sidekiq-unique-jobs
  --token
]
ADD_CHANGELOG_CMD = "git add --all"
COMMIT_CHANGELOG_CMD = "git commit -a -m 'Update changelog'"
# rubocop:enable Style/MutableConstant

desc "Generate a Changelog"
task :changelog do
  sh("git checkout main")
  sh(*CHANGELOG_CMD.push(ENV["CHANGELOG_GITHUB_TOKEN"]))
  sh(ADD_CHANGELOG_CMD)
  sh(COMMIT_CHANGELOG_CMD)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-7.1.19 lib/tasks/changelog.rake
sidekiq-unique-jobs-7.1.18 lib/tasks/changelog.rake
sidekiq-unique-jobs-7.1.17 lib/tasks/changelog.rake
sidekiq-unique-jobs-7.1.16 lib/tasks/changelog.rake
sidekiq-unique-jobs-7.1.15 lib/tasks/changelog.rake
sidekiq-unique-jobs-7.1.14 lib/tasks/changelog.rake
sidekiq-unique-jobs-7.1.13 lib/tasks/changelog.rake
sidekiq-unique-jobs-7.1.12 lib/tasks/changelog.rake
sidekiq-unique-jobs-7.1.11 lib/tasks/changelog.rake
sidekiq-unique-jobs-7.1.10 lib/tasks/changelog.rake
sidekiq-unique-jobs-7.1.8 lib/tasks/changelog.rake