From 535de1fb54ef36dfff7b1f76a3cd7b49c795c9f6 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 5 Oct 2023 13:58:20 +0200 Subject: [PATCH] Do post an overview if no changes were made --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index de29e41..87b0fce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -85,9 +85,9 @@ export class Main { changesets = changesets.filter(cs => allowedThemes.has(cs.properties.theme)) if (changesets.length == 0) { 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...")