Created
October 6, 2011 15:40
-
-
Save devinfoley/1267725 to your computer and use it in GitHub Desktop.
Set git commit log to :release_notes in Capistrano
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :show do | |
desc "Show some internal Cap-Fu: What's mah NAYM?!?" | |
task :me do | |
set :task_name, task_call_frames.first.task.fully_qualified_name | |
local_sha = `git rev-parse --verify HEAD` | |
remote_sha = capture("cd #{current_path}; git rev-parse --verify HEAD") | |
git_log = `git log #{remote_sha.strip}..#{local_sha.strip}` | |
puts git_log | |
set :release_notes, git_log | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment