Skip to content

Add option to filter out pre-releases from VS Marketplace badges#767

Merged
amio merged 3 commits into
mainfrom
fix-vs-marketplace-stable-version-1131874173838008425
May 6, 2026
Merged

Add option to filter out pre-releases from VS Marketplace badges#767
amio merged 3 commits into
mainfrom
fix-vs-marketplace-stable-version-1131874173838008425

Conversation

@amio

@amio amio commented May 6, 2026

Copy link
Copy Markdown
Member

This change adds support for filtering out pre-release versions for VS Marketplace badges. Users can now append /stable to the version badge URL (e.g., /vs-marketplace/v/ms-python.vscode-pylance/stable) to display only the latest stable version.

The implementation updates the VS Marketplace API query flags to include all versions and their properties, then filters the results in the handler to find the first version that does not have the Microsoft.VisualStudio.Code.PreRelease property set to true.

Additionally, the e2e test suite has been updated to include a verification step for this new feature and to gracefully skip the /memo tests when the required token is missing.


PR created automatically by Jules for task 1131874173838008425 started by @amio

- Support `/vs-marketplace/v/:pkg/stable` route to show the latest stable version.
- Update VS Marketplace API flags to fetch all versions and their properties.
- Add e2e test to verify stable vs latest versions.
- Skip `/memo` e2e test if `MEMO_BADGE_TOKEN` is not set.

Co-authored-by: amio <215282+amio@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented May 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
badgen.net Ready Ready Preview, Comment May 6, 2026 10:35am

Request Review

- Filter out pre-release versions by default in VS Marketplace badges.
- Add support for `/latest` tag to show the absolute latest version (including pre-releases).
- Update VS Marketplace API flags to correctly fetch version properties for filtering.
- Add e2e test to verify stable vs latest versions.
- Skip `/memo` e2e test if `MEMO_BADGE_TOKEN` is not set.

Co-authored-by: amio <215282+amio@users.noreply.github.com>
@amio amio merged commit 0c8c1a2 into main May 6, 2026
7 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.

1 participant