Last active
January 28, 2016 08:22
-
-
Save ulfryk/722390e1fa8ee5f328e3 to your computer and use it in GitHub Desktop.
publish git flow feature and add PR
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 | |
format_green_bold="\x1b[32;01m" | |
format_reset="\x1b[00m" | |
branch_name=$(git symbolic-ref -q HEAD) | |
branch_name=${branch_name##refs/heads/} | |
branch_name=${branch_name:-HEAD} | |
feature_name=${branch_name##feature/} | |
echo -e "Publishing feature $format_green_bold$feature_name$format_reset to remote repository:\n" | |
git flow feature publish $feature_name | |
echo -e "\nCreating pull request from $format_green_bold$branch_name$format_reset to develop:\n" | |
hub pull-request -b develop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment