Prompt user for branch/commit to base releases on. (https://github.com/woocommerce/woocommerce-admin/pull/3454)

This commit is contained in:
Jeff Stieler 2019-12-20 07:24:26 -05:00 committed by GitHub
parent ffae698c69
commit 45730ed5fa
1 changed files with 9 additions and 3 deletions

View File

@ -35,11 +35,17 @@ fi
status "Lets release WooCommerce Admin 🎉"
git checkout master || { error "ERROR: Unable to checkout master branch." ; exit 1; }
status "What branch/commit would you like to base this release on?"
success "Checked out master branch"
echo -n "Branch/commit: "
git pull origin master
read refspec
git checkout $refspec || { error "ERROR: Unable to checkout ${refspec}." ; exit 1; }
success "Checked out ${refspec}"
git pull origin ${refspec}
success "Pulled latest commits"