debian-mirror-gitlab/app/views/notify/pipeline_success_email.text.erb

33 lines
1.3 KiB
Text
Raw Normal View History

2016-11-03 12:29:30 +05:30
Your pipeline has passed.
Project: <%= @project.name %> ( <%= project_url(@project) %> )
Branch: <%= @pipeline.ref %> ( <%= commits_url(@pipeline) %> )
<% if @merge_request -%>
Merge Request: <%= @merge_request.to_reference %> ( <%= merge_request_url(@merge_request) %> )
<% end -%>
Commit: <%= @pipeline.short_sha %> ( <%= commit_url(@pipeline) %> )
Commit Message: <%= @pipeline.git_commit_message.truncate(50) %>
<% commit = @pipeline.commit -%>
<% if commit.author -%>
2019-02-13 22:33:31 +05:30
Commit Author: <%= sanitize_name(commit.author.name) %> ( <%= user_url(commit.author) %> )
2016-11-03 12:29:30 +05:30
<% else -%>
Commit Author: <%= commit.author_name %>
<% end -%>
2017-08-17 22:00:37 +05:30
<% if commit.different_committer? -%>
<% if commit.committer -%>
2019-02-13 22:33:31 +05:30
Committed by: <%= sanitize_name(commit.committer.name) %> ( <%= user_url(commit.committer) %> )
2017-08-17 22:00:37 +05:30
<% else -%>
Committed by: <%= commit.committer_name %>
<% end -%>
<% end -%>
2016-11-03 12:29:30 +05:30
2018-03-17 18:26:18 +05:30
<% job_count = @pipeline.total_size -%>
2017-08-17 22:00:37 +05:30
<% stage_count = @pipeline.stages_count -%>
<% if @pipeline.user -%>
2019-02-13 22:33:31 +05:30
Pipeline #<%= @pipeline.id %> ( <%= pipeline_url(@pipeline) %> ) triggered by <%= sanitize_name(@pipeline.user.name) %> ( <%= user_url(@pipeline.user) %> )
2017-08-17 22:00:37 +05:30
<% else -%>
Pipeline #<%= @pipeline.id %> ( <%= pipeline_url(@pipeline) %> ) triggered by API
<% end -%>
2018-03-17 18:26:18 +05:30
successfully completed <%= job_count %> <%= 'job'.pluralize(job_count) %> in <%= stage_count %> <%= 'stage'.pluralize(stage_count) %>.