Skip to content
Snippets Groups Projects
Commit d7763277 authored by Dylan Griffith's avatar Dylan Griffith
Browse files

Merge branch 'sy-undo-incident-title-translation' into 'master'

Do not translate title of incidents

See merge request gitlab-org/gitlab!54955
parents 48a16d4c b2626bcb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5,6 +5,7 @@ class CreateAlertIssueService
include Gitlab::Utils::StrongMemoize
 
DEFAULT_ALERT_TITLE = ::Gitlab::AlertManagement::Payload::Generic::DEFAULT_TITLE
DEFAULT_INCIDENT_TITLE = 'New: Incident'
 
# @param alert [AlertManagement::Alert]
# @param user [User]
Loading
Loading
@@ -57,7 +58,7 @@ def associate_alert_with_issue(issue)
def update_title_for(issue)
return unless issue.title == DEFAULT_ALERT_TITLE
 
issue.update!(title: _('New: Incident %{iid}' % { iid: issue.iid }))
issue.update!(title: "#{DEFAULT_INCIDENT_TITLE} #{issue.iid}")
end
 
def error(message, issue = nil)
Loading
Loading
Loading
Loading
@@ -20178,9 +20178,6 @@ msgstr ""
msgid "New..."
msgstr ""
 
msgid "New: Incident %{iid}"
msgstr ""
msgid "Newest first"
msgstr ""
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment