zed icon indicating copy to clipboard operation
zed copied to clipboard

Support custom fetch github api use self Token

Open d1y opened this issue 1 year ago • 1 comments

Check for existing issues

  • [X] Completed

Describe the feature

When a large amount of access to the github api will be restricted, you need to configure the token yourself.

#7183 Causes requests to continue until restricted by github (403)

image

https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api?apiVersion=2022-11-28

There are two things to do:

  1. Add an option to set github-token globally in the settings
  2. Bring this token in our request👀
curl --request GET \
--url "https://api.github.com/octocat" \
--header "Authorization: Bearer YOUR-TOKEN" \
--header "X-GitHub-Api-Version: 2022-11-28"

If applicable, add mockups / screenshots to help present your vision of the feature

No response

d1y avatar Feb 01 '24 16:02 d1y

#7219

jansol avatar Feb 01 '24 23:02 jansol