Fix version bump script (#7774)
This commit is contained in:
parent
14b3dfc94f
commit
efaa519c30
1 changed files with 2 additions and 1 deletions
|
|
@ -85,13 +85,14 @@ if [ -n "${CREATE_PR}" ]; then
|
|||
|
||||
log "Creating PR"
|
||||
PR_TITLE="Bump app ${BUMP_BUILD_NUMBER:+build}${BUMP_VERSION_NUMBER:+${BUMP_BUILD_NUMBER:+ and }version} number"
|
||||
MILESTONE_FOUND=$(curl -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/mattermost/mattermost-mobile/milestones | jq -r ".[] | .title | select(. == \"v${VERSION_NUMBER:-}\")")
|
||||
gh pr create \
|
||||
--repo mattermost/mattermost-mobile \
|
||||
--base "${BRANCH_TO_BUILD}" \
|
||||
--head "${GIT_LOCAL_BRANCH}" \
|
||||
--reviewer "${PR_REVIEWERS}" \
|
||||
--title "$PR_TITLE" \
|
||||
$([ -z "$BUMP_VERSION_NUMBER" ] || echo -n "--milestone v${VERSION_NUMBER} --label CherryPick/Approved") \
|
||||
$([ -z "$BUMP_VERSION_NUMBER" -o -z "${MILESTONE_FOUND}" ] || echo -n "--milestone v${VERSION_NUMBER} --label CherryPick/Approved" # Do not specify the milestone if not bumping the version number, or if the milestone is not found) \
|
||||
--body-file - <<EOF
|
||||
#### Summary
|
||||
$([ -z "$BUMP_BUILD_NUMBER" ] || echo "\
|
||||
|
|
|
|||
Loading…
Reference in a new issue