Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b2626bcb
Commit
b2626bcb
authored
Feb 23, 2021
by
syasonik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not translate title of incidents
parent
6e9ec5d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
app/services/alert_management/create_alert_issue_service.rb
app/services/alert_management/create_alert_issue_service.rb
+2
-1
locale/gitlab.pot
locale/gitlab.pot
+0
-3
No files found.
app/services/alert_management/create_alert_issue_service.rb
View file @
b2626bcb
...
...
@@ -5,6 +5,7 @@ module AlertManagement
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]
...
...
@@ -57,7 +58,7 @@ module AlertManagement
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
)
...
...
locale/gitlab.pot
View file @
b2626bcb
...
...
@@ -20121,9 +20121,6 @@ msgstr ""
msgid "New..."
msgstr ""
msgid "New: Incident %{iid}"
msgstr ""
msgid "Newest first"
msgstr ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment