Created
October 22, 2014 14:47
-
-
Save claudioc/82f36dba4f74a4ebd858 to your computer and use it in GitHub Desktop.
Easy pull request (needs hub)
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 | |
B=$(git rev-parse --abbrev-ref HEAD) | |
M=$(git log -n1 --format=format:%s) | |
DEF_TITLE="${M} - ${B}" | |
read -e -p "Provide the issue number: " ISSUEN | |
read -e -p "Provide a meaningful title [${DEF_TITLE}]: " TITLE | |
TITLE="${TITLE:-$DEF_TITLE}" | |
echo | |
echo hub pull-request -m \"${ISSUEN} ${TITLE}\" -h claudioc:${B} | |
echo hub pull-request -m \"${ISSUEN} ${TITLE}\" -h claudioc:${B} | pbcopy | |
echo Copied in your clipboard. | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment