Do post an overview if no changes were made

This commit is contained in:
Pieter Vander Vennet 2023-10-05 13:58:20 +02:00
parent 9e697f170f
commit 535de1fb54

View file

@ -85,10 +85,10 @@ export class Main {
changesets = changesets.filter(cs => allowedThemes.has(cs.properties.theme)) changesets = changesets.filter(cs => allowedThemes.has(cs.properties.theme))
if (changesets.length == 0) { if (changesets.length == 0) {
console.log("No changesets found for themes", action.themeWhitelist.join(", ")) console.log("No changesets found for themes", action.themeWhitelist.join(", "))
return console.log("No changesets found for themes", action.themeWhitelist.join(", ")) }else{
}
console.log("Filtering for ", action.themeWhitelist, "yielded", changesets.length, "changesets (" + beforeCount + " before)") console.log("Filtering for ", action.themeWhitelist, "yielded", changesets.length, "changesets (" + beforeCount + " before)")
} }
}
console.log("Building post...") console.log("Building post...")
const yesterday = new Date(today.getTime() - 24 * 60 * 60 * 1000) const yesterday = new Date(today.getTime() - 24 * 60 * 60 * 1000)