Skip to content

Commit 564882c

Browse files
committed
Made GitHub fallback API to GitLab for providing 60x the rate limit ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/blob/main/utils/bump/resources.js]
1 parent c120d6f commit 564882c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

utils/bump/resources.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@
7373

7474
// Fetch latest commit hash for adamlui/ai-web-extensions
7575
bump.log.working('\nFetching latest commit hash for adamlui/ai-web-extensions...\n')
76-
const latestCommitHashes = { aiweb: await bump.getLatestCommitHash({ repo: 'adamlui/ai-web-extensions' }) }
76+
const latestCommitHashes = {
77+
aiweb: await bump.getLatestCommitHash({ repo: 'adamlui/ai-web-extensions', source: 'gitlab' })}
7778

7879
// Process each userscript
7980
let urlsUpdatedCnt = 0 ; let filesUpdatedCnt = 0
@@ -89,7 +90,7 @@
8990
if (urlMap[userJSfilePath].some(url => url.includes(repoName))) {
9091
console.log('Fetching latest commit hash for Chromium extension...')
9192
latestCommitHashes.chromium = await bump.getLatestCommitHash(
92-
{ repo: `adamlui/${repoName}`, path: 'chromium/extension' })
93+
{ repo: `adamlui/${repoName}`, path: 'chromium/extension', source: 'gitlab' })
9394
}
9495

9596
// Process each resource

0 commit comments

Comments
 (0)