Last active
December 23, 2015 06:29
-
-
Save vmariano/6594602 to your computer and use it in GitHub Desktop.
Ask for reviewboard basic functions.
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
#!/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