Skip to content

fix: disallow release bumping on decimal releases#138

Merged
reubeno merged 2 commits intomicrosoft:mainfrom
Tonisal-byte:asalinas/nonautorelease-fix-0429
Apr 30, 2026
Merged

fix: disallow release bumping on decimal releases#138
reubeno merged 2 commits intomicrosoft:mainfrom
Tonisal-byte:asalinas/nonautorelease-fix-0429

Conversation

@Tonisal-byte
Copy link
Copy Markdown
Contributor

These changes resolve the unintended behavior of bumping the leading integer in decimal releases that exist in some specs. One such example occurs with the package cvsps.

# Failure
Release:    0.39.b1 -> 1.39.b1 

Copilot AI review requested due to automatic review settings April 30, 2026 18:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR prevents BumpStaticRelease from bumping releases that use dotted/decimal-style numeric prefixes (e.g., 1.39.b1), where the leading integer is not the build counter.

Changes:

  • Tightened the static release regex to reject values where the leading integer is immediately followed by a dot.
  • Added test cases asserting dotted/decimal-ish releases are rejected.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
internal/app/azldev/core/sources/release.go Updates staticReleasePattern to reject dotted numeric prefixes in static Release values.
internal/app/azldev/core/sources/release_test.go Adds regression tests ensuring dotted/decimal-style Release values are rejected.

Comment thread internal/app/azldev/core/sources/release.go Outdated
Comment thread internal/app/azldev/core/sources/release.go Outdated
Comment thread internal/app/azldev/core/sources/release.go Outdated
Comment thread internal/app/azldev/core/sources/release_test.go
@Tonisal-byte Tonisal-byte force-pushed the asalinas/nonautorelease-fix-0429 branch from c63109c to eeb5edd Compare April 30, 2026 19:00
Copilot AI review requested due to automatic review settings April 30, 2026 19:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread internal/app/azldev/core/sources/release.go
@reubeno reubeno merged commit 0ce1bc8 into microsoft:main Apr 30, 2026
18 of 19 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