Last active
August 29, 2015 14:02
-
-
Save marksim/8169b00130e6f2c800f6 to your computer and use it in GitHub Desktop.
Revisions
-
marksim revised this gist
Jun 4, 2014 . 1 changed file with 11 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,12 @@ #!/usr/bin/ruby version = ARGV.first if version releases = `heroku releases -n 50 --remote=production | grep Deploy | grep -A1 #{ARGV.first}` commits = releases.split("\n").reverse.map {|r| r.split(/\s/)[3] }.join('..') command = 'git log --pretty=format:"%h - %an, %ar : %s" ' + commits puts `#{command}` else puts "A version is required: ex: release_notes v191" puts `heroku releases --remote=production` end -
marksim created this gist
Jun 4, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ #!/usr/bin/ruby releases = `heroku releases --remote=production | grep Deploy | grep -A1 #{ARGV.first}` commits = releases.split("\n").reverse.map {|r| r.split(/\s/)[3] }.join('..') command = 'git log --pretty=format:"%h - %an, %ar : %s" ' + commits puts `#{command}`