Skip to content

Commit

Permalink
Add a task to commit the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
carllerche committed Nov 17, 2010
1 parent b3b6c71 commit f9bd6d8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tasks/release.rb
Expand Up @@ -73,9 +73,22 @@
end
end

task :commit do
File.open('dist/commit_message.txt', 'w') do |f|
f.puts "# Preparing for #{version} release\n"
f.puts
f.puts "# UNCOMMENT THE LINE ABOVE TO APPROVE THIS COMMIT"
end

sh "git add . && git commit --verbose --template=dist/commit_message.txt"
rm_f "dist/commit_message.txt"
end

task :tag do
sh "git tag #{tag}"
end

task :full => %w(ensure_clean_state all:build commit)
end

namespace :all do
Expand Down

0 comments on commit f9bd6d8

Please sign in to comment.