daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest May 25th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. gpr() {
  2.   NEWLINE=$'\n';
  3.   lastCommitMessage=$(git log -1 --pretty=%B);
  4.   ticketNumber=$(echo $lastCommitMessage | cut -d ":" -f2 | cut -d " " -f2);
  5.   message=$(<./.github/PULL_REQUEST_TEMPLATE.md);
  6.   messageReplaced=$(sed -e "s/GEOR-xxx/$ticketNumber/g" <<< $message);
  7.  
  8.   hub pull-request -m "$lastCommitMessage$NEWLINE$messageReplaced" -o;
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top