Skip to content

feat: cache VS Code Marketplace version badge via Gist#88

Merged
github-actions[bot] merged 1 commit into
mainfrom
cached-version-badge
Jun 6, 2026
Merged

feat: cache VS Code Marketplace version badge via Gist#88
github-actions[bot] merged 1 commit into
mainfrom
cached-version-badge

Conversation

@SebTardif
Copy link
Copy Markdown
Contributor

Summary

Replace the unreliable vsmarketplacebadges.dev badge with a shields.io endpoint badge backed by a GitHub Gist JSON file. The release workflow writes the current version to the Gist after each publish, so the badge reads from a static, cached source instead of hitting a flaky third-party service.

Changes

  • release.yml: Added version extraction step and schneegans/dynamic-badges-action to write version.json to the same Gist used for the coverage badge
  • README.md: Swapped badge URL from vsmarketplacebadges.dev to shields.io endpoint reading from the Gist
  • lychee.toml: Removed vsmarketplacebadges.dev exclusion (no longer referenced)
  • Gist: Seeded with initial version.json for v0.0.1

Why

vsmarketplacebadges.dev returns transient HTTP 500 errors, causing the badge to show broken/stale. The Gist-backed approach is the same pattern already used for the coverage badge, so it is proven reliable.

Replace the unreliable vsmarketplacebadges.dev badge with a shields.io
endpoint badge that reads from a GitHub Gist JSON file. The release
workflow now writes the version to the same Gist used for coverage,
so the badge never hits a flaky third-party service.

- Add version extraction and dynamic-badges-action step to release.yml
- Update README badge URL to use Gist endpoint
- Remove vsmarketplacebadges.dev from lychee exclude list
- Seed Gist with initial version.json for v0.0.1

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
@github-actions github-actions Bot enabled auto-merge (squash) June 6, 2026 00:40
@github-actions github-actions Bot merged commit e24a3cc into main Jun 6, 2026
24 of 25 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