debian-mirror-gitlab/app/views/notify/repository_push_email.text.haml

50 lines
1.4 KiB
Text
Raw Normal View History

2015-12-23 02:04:40 +05:30
#{@message.author_name} #{@message.action_name} #{@message.ref_type} #{@message.ref_name} at #{@message.project_name_with_namespace}
- if @message.compare
2014-09-02 18:07:02 +05:30
\
2015-04-26 12:48:37 +05:30
\
2015-12-23 02:04:40 +05:30
- if @message.reverse_compare?
2015-04-26 12:48:37 +05:30
WARNING: The push did not contain any new commits, but force pushed to delete the commits and changes below.
\
\
2015-12-23 02:04:40 +05:30
= @message.reverse_compare? ? "Deleted commits:" : "Commits:"
- @message.commits.each do |commit|
2015-04-26 12:48:37 +05:30
#{commit.short_id} by #{commit.author_name} at #{commit.committed_date.strftime("%Y-%m-%dT%H:%M:%SZ")}
#{commit.safe_message}
\- - - - -
\
\
2015-12-23 02:04:40 +05:30
#{pluralize @message.diffs_count, "changed file"}:
2015-04-26 12:48:37 +05:30
\
2015-12-23 02:04:40 +05:30
- @message.diffs.each do |diff|
2015-04-26 12:48:37 +05:30
- if diff.deleted_file
\- #{diff.old_path}
- elsif diff.renamed_file
\- #{diff.old_path} → #{diff.new_path}
- elsif diff.new_file
\- + #{diff.new_path}
- else
\- #{diff.new_path}
2015-12-23 02:04:40 +05:30
- unless @message.disable_diffs?
2015-04-26 12:48:37 +05:30
\
\
Changes:
2015-12-23 02:04:40 +05:30
- @message.diffs.each do |diff|
2015-04-26 12:48:37 +05:30
\
\=====================================
- if diff.deleted_file
#{diff.old_path} deleted
- elsif diff.renamed_file
#{diff.old_path} → #{diff.new_path}
- else
= diff.new_path
\=====================================
!= diff.diff
2015-12-23 02:04:40 +05:30
- if @message.compare_timeout
2015-04-26 12:48:37 +05:30
\
\
Huge diff. To prevent performance issues it was hidden
2015-12-23 02:04:40 +05:30
- if @message.target_url
2015-04-26 12:48:37 +05:30
\
\
2015-12-23 02:04:40 +05:30
View it on GitLab: #{@message.target_url}