Module: RunfileTasks::Changelog
Instance Method Summary collapse
Instance Method Details
#generator(repo) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/runfile-tasks/changelog.rb', line 5 def generator(repo) usage "changelog [--commit]" help "Generate changelog" option "-c, --commit", "Also commit CHANGELOG.md" action :changelog do |args| user, project = repo.split "/" commit = args['--commit'] || args['--push'] run "github_changelog_generator --project #{project} --user #{user}" run "git add CHANGELOG.md && git commit -m changelog CHANGELOG.md" if commit end end |