We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6a084b commit 3ab80d5Copy full SHA for 3ab80d5
index.js
@@ -55,7 +55,16 @@ class Updates {
55
const url = `https://api.github.com/repos/${account}/${repository}/releases?per_page=100`
56
const headers = { Accept: 'application/vnd.github.preview' }
57
const res = await fetch(url, { headers })
58
- if (res.status >= 400) return
+
59
+ if (res.status === 403) {
60
+ console.error('Rate Limited!')
61
+ return
62
+ }
63
64
+ if (res.status >= 400) {
65
66
67
68
const releases = await res.json()
69
for (const release of releases) {
70
for (const asset of release.assets) {
0 commit comments