2015-11-21 14:54:19 -05:00
|
|
|
|
#{@message.author_name} #{@message.action_name} #{@message.ref_type} #{@message.ref_name} at #{@message.project_name_with_namespace}
|
|
|
|
|
- if @message.compare
|
2015-02-25 09:12:19 -05:00
|
|
|
|
\
|
|
|
|
|
\
|
2015-11-21 14:54:19 -05:00
|
|
|
|
- if @message.reverse_compare?
|
2015-03-17 08:55:39 -04:00
|
|
|
|
WARNING: The push did not contain any new commits, but force pushed to delete the commits and changes below.
|
|
|
|
|
\
|
|
|
|
|
\
|
2015-11-21 14:54:19 -05:00
|
|
|
|
= @message.reverse_compare? ? "Deleted commits:" : "Commits:"
|
|
|
|
|
- @message.commits.each do |commit|
|
2016-01-07 16:45:56 -05:00
|
|
|
|
#{commit.short_id} by #{commit.author_name} at #{commit.committed_date.to_s(:iso8601)}
|
2015-03-17 08:55:39 -04:00
|
|
|
|
#{commit.safe_message}
|
|
|
|
|
\- - - - -
|
|
|
|
|
\
|
2013-12-17 08:30:15 -05:00
|
|
|
|
\
|
2015-11-21 14:54:19 -05:00
|
|
|
|
#{pluralize @message.diffs_count, "changed file"}:
|
2015-02-25 08:29:49 -05:00
|
|
|
|
\
|
2017-05-15 13:10:29 -04:00
|
|
|
|
- @message.diffs.each do |diff_file|
|
|
|
|
|
- if diff_file.deleted_file?
|
|
|
|
|
\- − #{diff_file.old_path}
|
|
|
|
|
- elsif diff_file.renamed_file?
|
|
|
|
|
\- #{diff_file.old_path} → #{diff_file.new_path}
|
|
|
|
|
- elsif diff_file.new_file?
|
|
|
|
|
\- + #{diff_file.new_path}
|
2015-02-25 08:29:49 -05:00
|
|
|
|
- else
|
2017-05-15 13:10:29 -04:00
|
|
|
|
\- #{diff_file.new_path}
|
2015-11-21 14:54:19 -05:00
|
|
|
|
- unless @message.disable_diffs?
|
2016-05-12 11:06:14 -04:00
|
|
|
|
- if @message.compare_timeout
|
2015-03-17 08:55:39 -04:00
|
|
|
|
\
|
2016-05-12 11:06:14 -04:00
|
|
|
|
\
|
|
|
|
|
The diff was not included because it is too large.
|
|
|
|
|
- else
|
|
|
|
|
\
|
|
|
|
|
\
|
|
|
|
|
Changes:
|
|
|
|
|
- @message.diffs.each do |diff_file|
|
|
|
|
|
\
|
|
|
|
|
\=====================================
|
2017-05-15 13:10:29 -04:00
|
|
|
|
- if diff_file.deleted_file?
|
2016-05-12 11:06:14 -04:00
|
|
|
|
#{diff_file.old_path} deleted
|
2017-05-15 13:10:29 -04:00
|
|
|
|
- elsif diff_file.renamed_file?
|
2016-05-12 11:06:14 -04:00
|
|
|
|
#{diff_file.old_path} → #{diff_file.new_path}
|
|
|
|
|
- else
|
|
|
|
|
= diff_file.new_path
|
|
|
|
|
\=====================================
|
|
|
|
|
- if diff_file.too_large?
|
|
|
|
|
The diff for this file was not included because it is too large.
|
|
|
|
|
- else
|
|
|
|
|
!= diff_file.diff.diff
|
2015-11-21 14:54:19 -05:00
|
|
|
|
- if @message.target_url
|
2015-03-17 08:55:39 -04:00
|
|
|
|
\
|
|
|
|
|
\
|
2015-11-21 14:54:19 -05:00
|
|
|
|
View it on GitLab: #{@message.target_url}
|