CRM 專案 git flow 處理
false
ylhealth
FLOW
release 還是 hotfix
release
hotfix
Version
發行的版本
1.32GA
false
1
2
-1
-1
2
https://cm.ylhealth.org/gitlab/ym/CRM/
3485e854-8389-40e8-8c86-b94e94e91904
*/master
false
MAC_BUILD_Machine
false
false
false
false
false
# 建立 release branch
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