File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -13783,7 +13783,11 @@ feedList.forEach((siteUrl) => {
13783
13783
reject("Cannot read response->item->pubDate");
13784
13784
}
13785
13785
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";
13787
13791
}
13788
13792
if (ENABLE_VALIDATION && !item.link) {
13789
13793
reject("Cannot read response->item->link");
@@ -13796,7 +13800,8 @@ feedList.forEach((siteUrl) => {
13796
13800
});
13797
13801
const categories = item.categories ? categoriesToArray(item.categories) : [];
13798
13802
let post = {
13799
- title: item.title.trim(),
13803
+ title: item.title ? item.title.trim() : item.title,
13804
+ // Handle null safely
13800
13805
url: item.link.trim(),
13801
13806
description: item.content ? item.content : "",
13802
13807
...customTags,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " blog-post-workflow" ,
3
- "version" : " 1.8.9 " ,
3
+ "version" : " 1.9.0 " ,
4
4
"description" : " Allows you to show your latest blog posts on your github profile or project readme" ,
5
5
"main" : " blog-post-workflow.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments