Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

fixes some hash errors when using a private repository #259

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

literalice
Copy link

I want to use a private repository for retrieving *.d.ts files.
I couldn't get raw files from https://raw.githubusercontent.com/{owner}/{project}(got the login page).
In this fix, raw files are read via API.

For uncached *.d.ts files, the number of access to GitHub API will be increased.

@@ -1,7 +1,7 @@
{
"sha": "5ba56e0dbb7cc433d5b98ab3cbbf5e0d92954ff1",
"size": 5060,
"url": "https://api.github.com/repos/borisyankov/DefinitelyTyped/git/blobs/5ba56e0dbb7cc433d5b98ab3cbbf5e0d92954ff1",
"url": "https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/blobs/5ba56e0dbb7cc433d5b98ab3cbbf5e0d92954ff1",
Copy link
Author

Choose a reason for hiding this comment

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

It is not related to my fix, just for passing tests on CI.
(but some errors occurred because of rate limit exceed... I've confirmed passing tests on a local machine using my github token.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant