Use GitHub token rotation in production :P (#1266)
This commit is contained in:
@@ -243,7 +243,7 @@ function githubRequest(request, url, query, cb) {
|
||||
'Accept': 'application/vnd.github.v3+json',
|
||||
};
|
||||
|
||||
const githubToken = globalToken === null ? getReqRemainingToken() : globalToken;
|
||||
const githubToken = globalToken === undefined ? getReqRemainingToken() : globalToken;
|
||||
|
||||
if (githubToken != null) {
|
||||
// Typically, GitHub user tokens grants us 12500 req/hour.
|
||||
|
||||
Reference in New Issue
Block a user