From a14e014ee3f229b2aef8139fa3b7ddeacb70b9ce Mon Sep 17 00:00:00 2001 From: reallyli Date: Sat, 29 Sep 2018 22:46:52 +0800 Subject: [PATCH] update log data display style --- src/task/init.php | 5 +++-- src/task/notify.php | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/task/init.php b/src/task/init.php index 3602d68..2542930 100644 --- a/src/task/init.php +++ b/src/task/init.php @@ -35,8 +35,8 @@ */ function recordOperationLog($behavior, $filename) { + $date = '['.date('Y-m-d H:i:s').']'; $revisionMessage = implode(',', [ - '📝['.date('Y-m-d H:i:s').']', 'deployer:'.get('user'), 'behavior:'.$behavior, 'branch:'.get('branch'), @@ -45,7 +45,8 @@ function recordOperationLog($behavior, $filename) 'last_commit_date:'.get('last_commit_date'), 'last_commit_author:'.get('last_commit_author'), ]); - run('echo '.$revisionMessage.' >> '.get('deploy_path').'/'.$filename.'.log'); + + run('echo '.$date.$revisionMessage.' >> '.get('deploy_path').'/'.$filename.'.log'); writeln('📝 record '.$behavior.' log successfully ✔'); } diff --git a/src/task/notify.php b/src/task/notify.php index fb91395..1fd4300 100644 --- a/src/task/notify.php +++ b/src/task/notify.php @@ -32,7 +32,7 @@ function sendGroupNotify(string $content) task('success:notify', function () { $successMessage = implode("\n", [ - ' 🎈🎉🎊 Successfully released', + 'Successfully released 🚀🎉🎊 ', 'application: '.get('application'), 'announcer: '.get('user'), 'branch: '.get('branch'), @@ -44,7 +44,7 @@ function sendGroupNotify(string $content) task('failed:notify', function () { $failedMessage = implode("\n", [ - ' 🎈🎉🎊 Failed to release', + 'Failed to release 🚀👻⚡', 'application: '.get('application'), 'announcer: '.get('user'), 'branch: '.get('branch'),