Skip to content

Commit

Permalink
feat: show elapsed date (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 authored Jul 11, 2024
1 parent 05456e7 commit 36619f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 36619f4

Please sign in to comment.