Created
November 23, 2011 16:39
-
-
Save pcreux/1389159 to your computer and use it in GitHub Desktop.
Batch gitmine review a bunch of tickets.
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
#!/user/env ruby | |
# | |
# Batch gitmine review a bunch of tickets. | |
# | |
# Usage: ruby batch_review.rb 7585 7603 7623 7640 7663 7665 | |
# | |
ARGV.each do |issue_id| | |
system("gitmine checkout #{issue_id} && git pull && git diff master...HEAD") | |
puts "Merge into master?" | |
if STDIN.gets.chomp =~ /^y/i | |
system("gitmine review #{issue_id}") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment