Skip to content

Instantly share code, notes, and snippets.

@vmariano
Last active December 23, 2015 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmariano/6594602 to your computer and use it in GitHub Desktop.
Save vmariano/6594602 to your computer and use it in GitHub Desktop.
Ask for reviewboard basic functions.
#!/bin/bash
# All functions create a draft for each review.
#For public branches only this means,
function reviewPublickBranch() {
post-review --guess-summary --guess-description --target-groups development "$1" | grep https | xargs firefox
}
#Parent non public.
function reviewNonPublicBranch() {
git rev-parse HEAD^1 | xargs post-review --guess-summary --guess-description --target-groups development --parent | grep https | xargs firefox
}
#Update current review
function reviewUpdateNonPublic() {
git rev-parse HEAD^1 | xargs post-review --guess-summary --guess-description --target-groups development -r "$1" --parent | grep https | xargs firefox
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment