Skip to content

Instantly share code, notes, and snippets.

@dancar
dancar / grib.rb
Created August 21, 2012 06:50
Grib
#!/usr/bin/env ruby
# Grib - Git Reviewboard script
# Creates / updates reviews according to the current git branch
# Usage: just run it.
# If this is the first time a review is created for this branch, Grib will ask Reviewboard to create a new review, and will save this review's number
# If the current branch has already been reviewed, Grib will ask Reviewboard to add a diff to the existing review.
# Grib stores its data and configuration in a file named "gribdata.yml" under the .git directory.
# In this file you may also define default Reviewboard's target people/groups, whether to automatically open the browser or not, and other Reviewboard command options.
# Example gribdata.yml file:
#