Skip to content

Commit 3559ac6

Browse files
committed
npm run prepare
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f22987b commit 3559ac6

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

dist/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,15 @@ const run = async () => {
8787
// Iterate
8888
let counter = 0
8989
for (const item of feed.items) {
90-
const title = `${issueTitlePrefix}${item.title || (item.pubDate && new Date(item.pubDate).toUTCString())}`
91-
if (titlePattern && !title.match(titlePattern)) {
92-
core.debug(`Feed item skipped because it does not match the title pattern (${title})`)
90+
if (!item.title && (titlePattern || !item.pubDate)) {
91+
core.debug(`Feed item ${JSON.stringify(item)} skipped because it has no title`)
9392
continue
9493
}
94+
if (titlePattern && !item.title.match(titlePattern)) {
95+
core.debug(`Feed item skipped because it does not match the title pattern (${item.title})`)
96+
continue
97+
}
98+
const title = `${issueTitlePrefix}${item.title || new Date(item.pubDate).toUTCString()}`
9599

96100
core.debug(`Issue '${title}'`)
97101

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)