From 535421914158ebc74b8f5294cd561ff9e5748291 Mon Sep 17 00:00:00 2001 From: Christopher Angelo Date: Fri, 22 Apr 2022 10:10:38 +0700 Subject: [PATCH] fix: add default content if no activities are found --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index ac4f272..085d0e7 100644 --- a/index.js +++ b/index.js @@ -53,6 +53,10 @@ Toolkit.run( // Join items to one string .join('\n') + if (content == '') { + content = '⁉️ No recent activity performed!' + } + const box = new GistBox({ id: GIST_ID, token: GH_PAT }) try { tools.log.debug(`Updating Gist ${GIST_ID}`)