Skip to content

chore: restore RC release version format#2638

Merged
cstockton merged 1 commit into
masterfrom
cs/restore-version-format
Jul 22, 2026
Merged

chore: restore RC release version format#2638
cstockton merged 1 commit into
masterfrom
cs/restore-version-format

Conversation

@cstockton

@cstockton cstockton commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

In #2535 changed the format of the RC versions. This restores them to the previous format while retaining the security improvements to escaping.

Tested via:

export RELEASE_TITLE='chore(master): release 2.194.0'
node -e "
    const title = process.env.RELEASE_TITLE;
    console.log(title.split(' ').reverse().find(x => x.match(/[0-9]+[.][0-9]+[.][0-9]+/)));
"
MAIN_RELEASE_VERSION=$(node -e "
    const title = process.env.RELEASE_TITLE;
    console.log(title.split(' ').reverse().find(x => x.match(/[0-9]+[.][0-9]+[.][0-9]+/)));
")
GIT_DESC="$(git describe --tags --exclude 'rc*')"
GIT_DESC_WITHOUT_HASH="${GIT_DESC%-g*}"
COMMIT_COUNT="${GIT_DESC_WITHOUT_HASH##*-}"
RELEASE_VERSION="${MAIN_RELEASE_VERSION}-rc.${COMMIT_COUNT}"

echo $RELEASE_VERSION

Output:

2.194.0
2.194.0-rc.5

Restore the RC release version format to the `v2.193.1-rc.5` form.

Related:
#2535
@cstockton
cstockton requested a review from a team as a code owner July 22, 2026 14:14
@cstockton
cstockton merged commit 2b67f57 into master Jul 22, 2026
14 checks passed
@cstockton
cstockton deleted the cs/restore-version-format branch July 22, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants