Created
June 11, 2015 21:43
-
-
Save i80and/d713111e2d47ae1a42b6 to your computer and use it in GitHub Desktop.
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 | |
set -e | |
emailAddress=<USERNAME>@mongodb.com | |
# get the commit message | |
msg=`git log -1 --oneline | cut -d' ' -f2-` | |
hash=`git rev-parse HEAD` | |
hash=`git rev-parse HEAD~`..${hash} | |
OPTIONS="-y --oauth2 -H mongodbcr.appspot.com \ | |
--server mongodbcr.appspot.com --email ${emailAddress}" | |
if [[ $# -eq 0 ]]; then | |
# just last commit | |
upload.py ${OPTIONS} -m "$msg" --rev $hash | |
else | |
# issue given | |
issue=$1 | |
upload.py ${OPTIONS} -m "$msg" -i $issue --rev $hash | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment