update plain text version of pipeline success email
This commit is contained in:
parent
5cd95549d0
commit
585e02546f
1 changed files with 23 additions and 7 deletions
|
@ -1,7 +1,23 @@
|
||||||
Project: <%= @project.path_with_namespace %>
|
Success! Your CI pipeline has passed.
|
||||||
Branch: <%= @pipeline.ref %>
|
|
||||||
Commit: <%= @pipeline.short_sha %> (<%= @pipeline.sha %>)
|
Project: <%= @project.name %> ( <%= namespace_project_url(@project.namespace, @project) %> )
|
||||||
Commit Message: <%= @pipeline.git_commit_message %>
|
Branch: <%= @pipeline.ref %> ( <%= namespace_project_commits_url(@project.namespace, @project, @pipeline.ref) %> )
|
||||||
Commit Author: <%= @pipeline.git_author_name %>
|
<% if @merge_request -%>
|
||||||
Pusher: <%= @pipeline.user.try(:name) %>
|
Merge Request: <%= @merge_request.to_reference %> ( <%= namespace_project_merge_request_url(@project.namespace, @project, @merge_request) %> )
|
||||||
Pipeline #<%= @pipeline.id %> had succeeded.
|
<% end -%>
|
||||||
|
|
||||||
|
Commit: <%= @pipeline.short_sha %> ( <%= namespace_project_commit_url(@project.namespace, @project, @pipeline.sha) %> )
|
||||||
|
Commit Message: <%= @pipeline.git_commit_message.truncate(50) %>
|
||||||
|
<% commit = @pipeline.commit -%>
|
||||||
|
<% if commit.author.nil? -%>
|
||||||
|
Commit Author: <%= commit.author_name %>
|
||||||
|
<% else -%>
|
||||||
|
Commit Author: <%= commit.author.name %> ( <%= user_url(commit.author) %> )
|
||||||
|
<% end -%>
|
||||||
|
|
||||||
|
<% build_count = @pipeline.statuses.latest.size -%>
|
||||||
|
<% stage_count = @pipeline.stages.size -%>
|
||||||
|
Pipeline #<%= @pipeline.id %> ( <%= namespace_project_pipeline_url(@project.namespace, @project, @pipeline.id) %> ) successfully completed <%= build_count %> <%= 'build'.pluralize(build_count) %> in <%= stage_count %> <%= 'stage'.pluralize(stage_count) %>.
|
||||||
|
|
||||||
|
Manage all notifications: <%= profile_notifications_url %>
|
||||||
|
Help: <%= help_url %>
|
||||||
|
|
Loading…
Reference in a new issue