Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a task to commit the changes

  • Loading branch information...
commit 482790db6ce85b79a74b4f0f837fc848613daa4a 1 parent dab1d8d
Carl Lerche carllerche authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 tasks/release.rb
13 tasks/release.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.