From 36619f4041bfab55aa20518ab68cef5334ede401 Mon Sep 17 00:00:00 2001 From: scarf Date: Thu, 11 Jul 2024 17:57:58 +0900 Subject: [PATCH] feat: show elapsed date (#43) --- library.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library.js b/library.js index 26a2659..fc4965d 100644 --- a/library.js +++ b/library.js @@ -54,7 +54,7 @@ const KeepAliveWorkflow = async (githubToken, committerUsername, committerEmail, } resolve('Dummy commit created to keep the repository active...'); } else { - resolve('Nothing to do...'); + resolve(`Nothing to do... (elapsed date: ${diffInDays})`); } } catch (e) { reject(e); @@ -112,7 +112,7 @@ const APIKeepAliveWorkflow = (githubToken, response.status.toString() === '204' ? resolve('Kept repo active using the GitHUb API...') : reject(response); } else { - resolve('Nothing to do...'); + resolve(`Nothing to do... (elapsed date: ${diffInDays})`); } } catch (e) { reject(e);