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
This commit is contained in:
parent
9555cbe5a9
commit
8a555fb411
2 changed files with 2 additions and 1 deletions
1
changelogs/internal/newsfragments/1368.clarification
Normal file
1
changelogs/internal/newsfragments/1368.clarification
Normal file
|
@ -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();
|
const issuesForPage = await response.json();
|
||||||
issues = issues.concat(issuesForPage);
|
issues = issues.concat(issuesForPage);
|
||||||
const linkHeader = response.headers.get("link");
|
const linkHeader = response.headers.get("link");
|
||||||
pageLink = getNextLink(linkHeader);
|
pageLink = !!linkHeader ? getNextLink(linkHeader) : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue