Replace GitHub API version checks with redirect-based lookups to avoid rate limits#3141
Merged
PEZ merged 2 commits intoBetterThanTomorrow:devfrom Mar 21, 2026
Merged
Conversation
✅ Deploy Preview for calva-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
fae2492 to
cea4831
Compare
Collaborator
|
Thanks! Makes total sense. Right now it doesn't build, though. Not sure you've seen? https://app.circleci.com/pipelines/github/BetterThanTomorrow/calva/9788/workflows/6e54127a-8060-499b-806e-ccd9995ea9d7/jobs/59810 |
cea4831 to
a80acec
Compare
Contributor
Author
|
@PEZ sorry, fixed! |
8631397 to
8e2a33c
Compare
8e2a33c to
968e728
Compare
Contributor
Author
|
@PEZ good morning! if you would be so kind, could you review again, please? |
Collaborator
|
Thanks!!! |
jramosg
pushed a commit
to jramosg/calva
that referenced
this pull request
Mar 28, 2026
…-api-rate-limit Replace GitHub API version checks with redirect-based lookups to avoid rate limits * Fixes BetterThanTomorrow#3142
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What has changed?
Replaced GitHub REST API calls (
api.github.com) with redirect-based version lookups using the/releases/latestpage URL to avoid the 60 requests/hour unauthenticated rate limit.getLatestGitHubReleaseTagutility insrc/utilities.tsthat extracts the version tag from the GitHub releases redirect URL.getLatestVersionandgetLatestNightlyVersioninsrc/lsp/client/downloader.tswith calls to the shared utility.getLatestVersioninsrc/nrepl/deps-clj.tswith a call to the same shared utility.Fixes #3142
My Calva PR Checklist
I have:
devbranch. (Or have specific reasons to target some other branch.)published. (Sorry for the nagging.)[Unreleased]entry inCHANGELOG.md, linking the issue(s) that the PR is addressing.npm run prettier-format)npm run eslintbefore creating your PR, or runnpm run eslint-watchto eslint as you go).