Add some safety to the proposals script (#1368)

* Add some safety to the proposals script

for if github's api explodes, forgets the header, or we are rate limited or something.

* changelog
pull/1384/head
Travis Ralston 2 years ago committed by GitHub
parent 9555cbe5a9
commit 8a555fb411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1 @@
Improve safety of the proposals retrieval script in the event of failure.

@ -100,7 +100,7 @@ async function getIssues() {
const issuesForPage = await response.json();
issues = issues.concat(issuesForPage);
const linkHeader = response.headers.get("link");
pageLink = getNextLink(linkHeader);
pageLink = !!linkHeader ? getNextLink(linkHeader) : null;
}
}

Loading…
Cancel
Save