Skip to content

Commit 97c227a

Browse files
committed
[skip-ci] Published 1.9.0
1 parent 2c46400 commit 97c227a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

dist/blog-post-workflow.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -13783,7 +13783,11 @@ feedList.forEach((siteUrl) => {
1378313783
reject("Cannot read response->item->pubDate");
1378413784
}
1378513785
if (ENABLE_VALIDATION && !item.title) {
13786-
reject("Cannot read response->item->title");
13786+
core.warning(`Missing title for item with link: ${item.link || "unknown"}`);
13787+
if (core.getInput("skip_items_without_title") === "true") {
13788+
return null;
13789+
}
13790+
item.title = item.link ? `[No Title] - ${item.link.split("/").pop() || "Post"}` : "Post without title";
1378713791
}
1378813792
if (ENABLE_VALIDATION && !item.link) {
1378913793
reject("Cannot read response->item->link");
@@ -13796,7 +13800,8 @@ feedList.forEach((siteUrl) => {
1379613800
});
1379713801
const categories = item.categories ? categoriesToArray(item.categories) : [];
1379813802
let post = {
13799-
title: item.title.trim(),
13803+
title: item.title ? item.title.trim() : item.title,
13804+
// Handle null safely
1380013805
url: item.link.trim(),
1380113806
description: item.content ? item.content : "",
1380213807
...customTags,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blog-post-workflow",
3-
"version": "1.8.9",
3+
"version": "1.9.0",
44
"description": "Allows you to show your latest blog posts on your github profile or project readme",
55
"main": "blog-post-workflow.js",
66
"scripts": {

0 commit comments

Comments
 (0)