Open lizdeika opened 5 years ago
In git_log you can even do this to make it even prettier
def git_log
return unless revisions_present?
output, _status = Open3.capture2e 'git',
'--no-pager',
'log',
'--no-merges',
'--pretty=',
'--format=format:%ad - *%s*%d -- _%an_',
'--date-order',
'--date=iso',
"^#{previous_revision}",
current_revision
if output.empty?
'No commits (empty deploy)'
else
output.strip
end
end
Hi,
For anyone still struggling with outputing useful info for non technical staff:
https://i.imgur.com/h0l2K9U.jpg
Snippet to add to the custom messaging class: