File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1111cd $( dirname " $0 " ) /../../
1212
1313LATEST_RELEASE_TAG=$( gh release list --json tagName,isLatest --jq ' .[] | select(.isLatest)|.tagName' )
14- if [[ -e $LATEST_RELEASE_TAG ]]; then # first release?
14+ if [[ -z " $LATEST_RELEASE_TAG " ]]; then # first release?
1515 LATEST_RELEASE_TAG=$( git rev-list --max-parents=0 HEAD) # first commit in the branch.
1616fi
1717
18- PR_COMMITS=$( git log " $LATEST_RELEASE_TAG " ..HEAD --oneline --pretty=format:" %s" main | grep -oE " #[0-9]+" | tr -d ' #' | sort -u)
18+ GIT_LOG_OUTPUT=$( git log " $LATEST_RELEASE_TAG " ..HEAD --oneline --pretty=format:" %s" main)
19+ PR_COMMITS=$( echo " $GIT_LOG_OUTPUT " | grep -oE " #[0-9]+" || true | tr -d ' #' | sort -u)
1920
2021CHANGELOG_FILE=./CHANGELOG.md
2122# File header Header
You can’t perform that action at this time.
0 commit comments