Skip to content

Preserve prerelease case when matching release assets - #29

Merged
mxcl merged 1 commit into
masterfrom
preserve-asset-prerelease-case
Oct 7, 2026
Merged

mxcl merged 1 commit into
masterfrom
preserve-asset-prerelease-case

Conversation

@mxcl

@mxcl mxcl commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Asset matching lowercased prerelease identifiers, silently skipping a matching v2.0.0-RC.1 release and accepting an RC.1 asset for a distinct rc.1 tag. Preserve the version's casing while keeping repository-prefix matching case-insensitive.

Addresses #28 (comment).

Validation: the regression test fails on the parent commit for both matching and mismatched prerelease casing. All 84 tests pass with the fix (swift test --scratch-path /tmp/appupdater-pr28-case-build).

@coveralls

coveralls commented Oct 7, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 37630297537

Coverage decreased (-0.01%) to 70.876%

Details

  • Coverage decreased (-0.01%) from the base build.
  • Patch coverage: 1 of 1 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 2637
Covered Lines: 1869
Line Coverage: 70.88%
Coverage Strength: 437.16 hits per line

💛 - Coveralls

@mxcl
mxcl requested a balanced review from Copilot October 7, 2026 13:39
@mxcl
mxcl force-pushed the preserve-asset-prerelease-case branch from b95f5f1 to 3526af2 Compare October 7, 2026 13:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The implementation matches the stated requirements and includes focused regression coverage.

Review effort: Balanced
Findings: None

What changed in this PR

Preserves prerelease casing during asset matching while incorporating #28’s tolerant short-version matching.

Changes:

  • Parses asset versions without lowercasing prerelease identifiers.
  • Keeps repository-prefix matching case-insensitive.
  • Adds regression tests and documents short-version asset names.
File Description
AppUpdater.swift Parses and compares asset versions correctly.
Tests/​AppUpdaterTests/​AppUpdaterTests.swift Covers casing and short-version matching.
README.md Documents accepted asset version formats.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mxcl
mxcl merged commit a2b8989 into master Oct 7, 2026
1 check passed
@mxcl
mxcl deleted the preserve-asset-prerelease-case branch October 7, 2026 13: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.

3 participants