Skip to content

Commit dbed57f

Browse files
committed
npm run prepare
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent e49cf1c commit dbed57f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,13 @@ const run = async () => {
7474
// Remove old items in feed
7575
feed.items = feed.items.filter(x => x.pubDate === undefined || limitTime < new Date(x.pubDate).getTime())
7676

77-
const { data: issues } = await octokit.rest.issues.listForRepo({
77+
const { status, data: issues, ...rest } = await octokit.rest.issues.listForRepo({
7878
owner: context.repo.owner,
7979
repo: context.repo.repo,
8080
state: 'all',
8181
labels
8282
})
83+
if (status !== 200) throw new Error(`Failed to list issues: ${status} ${JSON.stringify(rest)}`)
8384
core.debug(`${issues.length} issues`)
8485

8586
const createdIssues = []

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)