diff --git a/changelogs/internal/newsfragments/1368.clarification b/changelogs/internal/newsfragments/1368.clarification new file mode 100644 index 00000000..a08f1ebe --- /dev/null +++ b/changelogs/internal/newsfragments/1368.clarification @@ -0,0 +1 @@ +Improve safety of the proposals retrieval script in the event of failure. \ No newline at end of file diff --git a/scripts/proposals.js b/scripts/proposals.js index 42300b98..dc3f2895 100644 --- a/scripts/proposals.js +++ b/scripts/proposals.js @@ -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; } }