HRB_Mobile 專案 git flow 處理 false ylhealth NEW_BRANCH 是否建立新的版本 false FLOW release 還是 hotfix release hotfix Version 發行的版本 1.32 false 1 3 -1 -1 2 https://cm.ylhealth.org/gitlab/ym/HRB_Mobile/ 3485e854-8389-40e8-8c86-b94e94e91904 */master false MAC_BUILD_Machine false false false false false # 建立 release branch if [[ "$NEW_BRANCH" == "true" ]]; then echo $NEW_BRANCH fi git fetch EXIST=$(git ls-remote --heads |grep $FLOW/$Version) if [[ -z "$EXIST" ]]; then if [ "$FLOW" == "release" ]; then git checkout develop else git checkout master fi git pull git checkout -b $FLOW/$Version git push -u origin $FLOW/$Version fi git fetch git checkout master git pull git checkout develop git pull git checkout $FLOW/$Version git pull git log master..$FLOW/$Version --pretty=format:'%s'| grep -E -o '[A-Z]+-[0-9]+'| sort|uniq false false