title: "Pipeline #{pipeline_link} of #{branch_link}#{ref_type} by #{user_name}#{humanized_status}",
"Pipeline #{pipeline_link} of #{branch_link}#{ref_type} by #{user_name}#{humanized_status}",
subtitle: "to: #{project_link}",
"to: #{project_link}",
text: "in #{duration}#{'second'.pluralize(duration)}",
"in #{duration}#{time_measure}",
image: user_avatar
user_avatar
}
).to_json
end
end
defattachments
defattachments
...
@@ -51,7 +50,7 @@ module ChatMessage
...
@@ -51,7 +50,7 @@ module ChatMessage
private
private
defmessage
defmessage
"#{project_link}: Pipeline #{pipeline_link} of #{branch_link}#{ref_type} by #{user_name}#{humanized_status} in #{duration}#{'second'.pluralize(duration)}"
"#{project_link}: Pipeline #{pipeline_link} of #{branch_link}#{ref_type} by #{user_name}#{humanized_status} in #{duration}#{time_measure}"