Skip to content

Commit

Permalink
Update changelog task
Browse files Browse the repository at this point in the history
- require the gem in Gemfile
- update for main branch
  • Loading branch information
tvdeyen committed Nov 22, 2020
1 parent 78cb3cc commit 8f2858e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ group :test do
gem "codeclimate-test-reporter", "~> 1.0", require: false
end
end

gem "github_fast_changelog"
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ BASH
original_file = './CHANGELOG.md'
new_file = original_file + '.new'
backup = original_file + '.old'
changes = `git rev-list #{ENV['PREVIOUS_VERSION']}...master | bundle exec github_fast_changelog AlchemyCMS/alchemy-devise`
changes = `git rev-list v#{ENV['PREVIOUS_VERSION']}...main | bundle exec github_fast_changelog AlchemyCMS/alchemy-devise`
File.open(new_file, 'w') do |fo|
fo.puts changes
File.foreach(original_file) do |li|
Expand Down

0 comments on commit 8f2858e

Please sign in to comment.