Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(github): use proxy API for fetching latest release #521

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

williamboman
Copy link
Owner

This uses a globally distributed, edge-cached, proxy 1 for a very common
touchpoint with the GitHub API. This is already done for fetching
the latest tag, now expanding to latest release as well.

This uses a globally distributed, edge-cached, proxy [1] for a very common
touchpoint with the GitHub API. This is already done for fetching
the latest tag, now expanding to latest release as well.

[1]: https://github.com/williamboman/github-api-proxy
@williamboman williamboman merged commit fb73733 into main Oct 6, 2022
@williamboman williamboman deleted the feat/proxy-api branch October 6, 2022 17:04
---@return Result # JSON decoded response.
local function proxy_api_call(path, opts)
if opts and opts.params then
local params = _.join("&", _.map(_.join "=", _.sort_by(_.head, _.to_pairs(opts.params))))

Choose a reason for hiding this comment

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

ewww

This was referenced Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants