"#{project_link}: Pipeline #{pipeline_link} of #{ref_type}#{branch_link} by #{user_combined_name}#{humanized_status} in #{pretty_duration(duration)}"
s_("ChatMessage|%{project_link}: Pipeline %{pipeline_link} of %{ref_type} %{branch_link} by %{user_combined_name} %{humanized_status} in %{duration}")%
{
project_link: project_link,
pipeline_link: pipeline_link,
ref_type: ref_type,
branch_link: branch_link,
user_combined_name: user_combined_name,
humanized_status: humanized_status,
duration: pretty_duration(duration)
}
end
defhumanized_status
casestatus
when'success'
'passed'
iffancy_notifications?
casestatus
when'success'
detailed_status=="passed with warnings"?s_("ChatMessage|has passed with warnings"):s_("ChatMessage|has passed")
when'failed'
s_("ChatMessage|has failed")
else
status
end
else
status
casestatus
when'success'
s_("ChatMessage|passed")
when'failed'
s_("ChatMessage|failed")
else
status
end
end
end
defattachment_color
ifstatus=='success'
'good'
iffancy_notifications?
casestatus
when'success'
detailed_status=='passed with warnings'?'warning':'good'
msgid "ChatMessage|%{project_link}: Pipeline %{pipeline_link} of %{ref_type} %{branch_link} by %{user_combined_name} %{humanized_status} in %{duration}"
msgstr ""
msgid "ChatMessage|Branch"
msgstr ""
msgid "ChatMessage|Commit"
msgstr ""
msgid "ChatMessage|Failed job"
msgstr ""
msgid "ChatMessage|Failed stage"
msgstr ""
msgid "ChatMessage|Invalid CI config YAML file"
msgstr ""
msgid "ChatMessage|Pipeline #%{pipeline_id} %{humanized_status} in %{duration}"
msgstr ""
msgid "ChatMessage|Pipeline %{pipeline_link} of %{ref_type} %{branch_link} by %{user_combined_name} %{humanized_status}"