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