Skip to content

Handle patch release versions#2

Merged
willson556 merged 1 commit into
mainfrom
bugfix/handle-patch-release
Dec 17, 2025
Merged

Handle patch release versions#2
willson556 merged 1 commit into
mainfrom
bugfix/handle-patch-release

Conversation

@willson556

@willson556 willson556 commented Dec 17, 2025

Copy link
Copy Markdown
Member

Description

  • Updated the version regex pattern in StaflVersion class to support optional prerelease metadata in the format: major.minor.patch+build-metadata
  • Added .DS_Store to .gitignore to exclude macOS system files from version control
  • Fix lint errors

Motivation and Context

The current version regex only supports the strict format of major.minor.patch+build without any additional metadata. This change allows for prerelease tags and other metadata to be included after the build number with a hyphen separator, making the versioning system more flexible.

How Has This Been Tested?

Added a new test case test_version_patch_release that verifies the versioner can correctly parse and handle version strings with prerelease metadata (e.g., 1.2.3+4-dev/patch).

Affected components

This change is self-contained and only affects the version parsing logic. Existing implementations that use the standard version format will continue to work as before.

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@willson556 willson556 marked this pull request as ready for review December 17, 2025 17:35
@willson556 willson556 force-pushed the bugfix/handle-patch-release branch from 22f0ad7 to 48134b9 Compare December 17, 2025 17:39
@willson556 willson556 changed the title Handle patch release versions. Handle patch release versions Dec 17, 2025
@willson556 willson556 merged commit 477f980 into main Dec 17, 2025
6 checks passed
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.

3 participants