Skip to content

Commit

Permalink
update log data display style
Browse files Browse the repository at this point in the history
  • Loading branch information
reallyli committed Sep 29, 2018
1 parent 98a430b commit a14e014
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/task/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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 ✔');
}

Expand Down
4 changes: 2 additions & 2 deletions src/task/notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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'),
Expand Down

0 comments on commit a14e014

Please sign in to comment.