717547e840
Show who triggered the pipeline. And also show the commit committer if it's different from the author.
32 lines
1.3 KiB
Text
32 lines
1.3 KiB
Text
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 -%>
|
|
Commit Author: <%= commit.author.name %> ( <%= user_url(commit.author) %> )
|
|
<% else -%>
|
|
Commit Author: <%= commit.author_name %>
|
|
<% end -%>
|
|
<% if commit.different_committer? -%>
|
|
<% if commit.committer -%>
|
|
Committed by: <%= commit.committer.name %> ( <%= user_url(commit.committer) %> )
|
|
<% else -%>
|
|
Committed by: <%= commit.committer_name %>
|
|
<% end -%>
|
|
<% end -%>
|
|
|
|
<% build_count = @pipeline.statuses.latest.size -%>
|
|
<% stage_count = @pipeline.stages_count -%>
|
|
<% if @pipeline.user -%>
|
|
Pipeline #<%= @pipeline.id %> ( <%= pipeline_url(@pipeline) %> ) triggered by <%= @pipeline.user.name %> ( <%= user_url(@pipeline.user) %> )
|
|
<% else -%>
|
|
Pipeline #<%= @pipeline.id %> ( <%= pipeline_url(@pipeline) %> ) triggered by API
|
|
<% end -%>
|
|
successfully completed <%= build_count %> <%= 'build'.pluralize(build_count) %> in <%= stage_count %> <%= 'stage'.pluralize(stage_count) %>.
|