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