2015-03-17 08:55:39 -04:00
|
|
|
|
#{@author.name} #{@action_name} #{@ref_type} #{@ref_name} at #{@project.name_with_namespace}
|
|
|
|
|
- if @compare
|
2015-02-25 09:12:19 -05:00
|
|
|
|
\
|
|
|
|
|
\
|
2015-03-17 08:55:39 -04:00
|
|
|
|
- if @reverse_compare
|
|
|
|
|
WARNING: The push did not contain any new commits, but force pushed to delete the commits and changes below.
|
|
|
|
|
\
|
|
|
|
|
\
|
|
|
|
|
= @reverse_compare ? "Deleted commits:" : "Commits:"
|
|
|
|
|
- @commits.each do |commit|
|
|
|
|
|
#{commit.short_id} by #{commit.author_name} at #{commit.committed_date.strftime("%Y-%m-%dT%H:%M:%SZ")}
|
|
|
|
|
#{commit.safe_message}
|
|
|
|
|
\- - - - -
|
|
|
|
|
\
|
2013-12-17 08:30:15 -05:00
|
|
|
|
\
|
2015-03-17 08:55:39 -04:00
|
|
|
|
#{pluralize @diffs.count, "changed file"}:
|
2015-02-25 08:29:49 -05:00
|
|
|
|
\
|
|
|
|
|
- @diffs.each do |diff|
|
|
|
|
|
- if diff.deleted_file
|
2015-03-17 08:55:39 -04:00
|
|
|
|
\- − #{diff.old_path}
|
2015-02-25 08:29:49 -05:00
|
|
|
|
- elsif diff.renamed_file
|
2015-03-17 08:55:39 -04:00
|
|
|
|
\- #{diff.old_path} → #{diff.new_path}
|
|
|
|
|
- elsif diff.new_file
|
|
|
|
|
\- + #{diff.new_path}
|
2015-02-25 08:29:49 -05:00
|
|
|
|
- else
|
2015-03-17 08:55:39 -04:00
|
|
|
|
\- #{diff.new_path}
|
|
|
|
|
- unless @disable_diffs
|
|
|
|
|
\
|
|
|
|
|
\
|
|
|
|
|
Changes:
|
|
|
|
|
- @diffs.each do |diff|
|
|
|
|
|
\
|
|
|
|
|
\=====================================
|
|
|
|
|
- if diff.deleted_file
|
|
|
|
|
#{diff.old_path} deleted
|
|
|
|
|
- elsif diff.renamed_file
|
|
|
|
|
#{diff.old_path} → #{diff.new_path}
|
|
|
|
|
- else
|
|
|
|
|
= diff.new_path
|
|
|
|
|
\=====================================
|
|
|
|
|
!= diff.diff
|
|
|
|
|
- if @compare.timeout
|
|
|
|
|
\
|
|
|
|
|
\
|
|
|
|
|
Huge diff. To prevent performance issues it was hidden
|
|
|
|
|
- if @target_url
|
|
|
|
|
\
|
|
|
|
|
\
|
|
|
|
|
View it on GitLab: #{@target_url}
|