zed
zed copied to clipboard
Support custom fetch github api use self Token
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)
https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api?apiVersion=2022-11-28
There are two things to do:
- Add an option to set
github-tokenglobally in the settings - 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
#7219