Skip to content

Instantly share code, notes, and snippets.

@pcreux
Created November 23, 2011 16:39
Show Gist options
  • Save pcreux/1389159 to your computer and use it in GitHub Desktop.
Save pcreux/1389159 to your computer and use it in GitHub Desktop.
Batch gitmine review a bunch of tickets.
#!/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