You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is failing because the version does not contains the PATCH number.
Can you update the job so it handle adding the patch when not present when updating Cargo.toml file?
Summary
Normalize the Cargo manifest version in the bump workflow when the release pipeline provides only a major/minor version.
Changes
append .0 before updating analyzer/Cargo.toml when the incoming version matches major.minor
emit a GitHub Actions notice when the workflow normalizes the Cargo version
Handles missing PATCH component in Cargo version string. The release pipeline sometimes provides only major.minor versions (e.g., '1.2'), but Cargo.toml requires semantic versioning with all three components. This change detects the two-component pattern and appends '.0' before updating the manifest, with a GitHub Actions notice to track when normalization occurs.
What reviewers should know
The only change is in .github/workflows/bump-version.yml (lines 46-52). The regex ^[0-9]+\.[0-9]+$ correctly matches exactly two numeric components and will skip normalization if the version already has a patch component. Verify that the notice message provides adequate visibility for the release team. The change does not affect versions already in major.minor.patch format, so existing releases remain unaffected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Epic: SKUNK-1662
Initial Prompt
Summary
Normalize the Cargo manifest version in the bump workflow when the release pipeline provides only a major/minor version.
Changes
.0before updatinganalyzer/Cargo.tomlwhen the incoming version matchesmajor.minor