Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bump): Fix detection of version scheme for test builds #12758

Merged
merged 14 commits into from
Nov 2, 2022

Conversation

tylerbutler
Copy link
Member

@tylerbutler tylerbutler commented Nov 2, 2022

Test builds have a version set in CI of the form 0.0.0-12345-test, where 12345 is the CI build number. The bump command was parsing the version scheme from the original version of the package and didn't update it with the final new version after processing all the command arguments.

@github-actions github-actions bot added the base: main PRs targeted against main branch label Nov 2, 2022
@tylerbutler tylerbutler marked this pull request as ready for review November 2, 2022 01:49
@tylerbutler tylerbutler requested a review from a team as a code owner November 2, 2022 01:49
Comment on lines +93 to +98
it("detects 0.0.0-105091-test is semver", () => {
const input = `0.0.0-105091-test`;
const expected = "semver";
assert.strictEqual(detectVersionScheme(input), expected);
});

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test passes as expected with no code change. The bug was in the command logic.

@tylerbutler tylerbutler merged commit 00f660b into microsoft:main Nov 2, 2022
@tylerbutler tylerbutler deleted the cli/fix-test-builds branch November 2, 2022 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants