Skip to content

Do not show beta with same patch as latest stable - #144

Merged
sverhoeven merged 3 commits into
mainfrom
beta-be-gone
Apr 10, 2026
Merged

Do not show beta with same patch as latest stable#144
sverhoeven merged 3 commits into
mainfrom
beta-be-gone

Conversation

@sverhoeven

Copy link
Copy Markdown
Contributor

Fixes #141

@github-actions

github-actions Bot commented Apr 10, 2026

Copy link
Copy Markdown

Coverage Report for Unit test coverage

Status Category Percentage Covered / Total
🔵 Lines 79.22% 473 / 597
🔵 Statements 79.27% 482 / 608
🔵 Functions 82.88% 92 / 111
🔵 Branches 72.55% 275 / 379
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/releaseStats.ts 98.5% 94.04% 93.33% 98.46% 147
Generated in workflow #339 for commit fded60b by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Apr 10, 2026

Copy link
Copy Markdown

Coverage Report for Browser test coverage

Status Category Percentage Covered / Total
🔵 Lines 67.06% 668 / 996
🔵 Statements 64.2% 947 / 1475
🔵 Functions 66.47% 113 / 170
🔵 Branches 61.03% 741 / 1214
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/releaseStats.ts 98.52% 91.66% 100% 98.5% 97
Generated in workflow #339 for commit fded60b by the Vitest Coverage Report Action

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.

Pull request overview

Updates module release action resolution to avoid offering a beta install/update when the beta shares the same major/minor/patch as the latest stable release (per #141).

Changes:

  • Suppress install-pre-release / update-pre-release actions when the latest pre-release has the same patch version as the latest stable.
  • Adjust existing unit test expectations and add new test cases covering “pre-release same patch as stable” scenarios.

Reviewed changes

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

File Description
src/releaseStats.ts Adds same-patch stable vs pre-release check to prevent offering redundant beta actions.
src/releaseStats.unit.test.ts Updates expectations and adds regression tests for stable/pre same patch behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/releaseStats.ts Outdated
Comment thread src/releaseStats.ts
@sverhoeven
sverhoeven merged commit 46c3dd7 into main Apr 10, 2026
5 checks passed
@sverhoeven
sverhoeven deleted the beta-be-gone branch April 10, 2026 12:49
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.

Beta install action should not be shown when beta has same version as stable release

2 participants