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
b8c9c00d
Commit
b8c9c00d
authored
Jul 27, 2021
by
Marcia Ramos
Committed by
Vasilii Iakliushin
Jul 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TW OKR: Review UI text Pushover integration
parent
7dfd9546
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
22 deletions
+57
-22
app/models/integrations/pushover.rb
app/models/integrations/pushover.rb
+40
-11
locale/gitlab.pot
locale/gitlab.pot
+16
-10
spec/features/projects/services/user_activates_pushover_spec.rb
...eatures/projects/services/user_activates_pushover_spec.rb
+1
-1
No files found.
app/models/integrations/pushover.rb
View file @
b8c9c00d
...
...
@@ -21,18 +21,46 @@ module Integrations
def
fields
[
{
type:
'text'
,
name:
'api_key'
,
title:
_
(
'API key'
),
placeholder:
s_
(
'PushoverService|Your application key'
),
required:
true
},
{
type:
'text'
,
name:
'user_key'
,
placeholder:
s_
(
'PushoverService|Your user key'
),
required:
true
},
{
type:
'text'
,
name:
'device'
,
placeholder:
s_
(
'PushoverService|Leave blank for all active devices'
)
},
{
type:
'select'
,
name:
'priority'
,
required:
true
,
choices:
{
type:
'text'
,
name:
'api_key'
,
title:
_
(
'API key'
),
help:
s_
(
'PushoverService|Enter your application key.'
),
placeholder:
''
,
required:
true
},
{
type:
'text'
,
name:
'user_key'
,
title:
_
(
'User key'
),
help:
s_
(
'PushoverService|Enter your user key.'
),
placeholder:
''
,
required:
true
},
{
type:
'text'
,
name:
'device'
,
title:
_
(
'Devices (optional)'
),
help:
s_
(
'PushoverService|Leave blank for all active devices.'
),
placeholder:
''
},
{
type:
'select'
,
name:
'priority'
,
required:
true
,
choices:
[
[
s_
(
'PushoverService|Lowest
P
riority'
),
-
2
],
[
s_
(
'PushoverService|Low
P
riority'
),
-
1
],
[
s_
(
'PushoverService|Normal
P
riority'
),
0
],
[
s_
(
'PushoverService|High
P
riority'
),
1
]
[
s_
(
'PushoverService|Lowest
p
riority'
),
-
2
],
[
s_
(
'PushoverService|Low
p
riority'
),
-
1
],
[
s_
(
'PushoverService|Normal
p
riority'
),
0
],
[
s_
(
'PushoverService|High
p
riority'
),
1
]
],
default_choice:
0
},
{
type:
'select'
,
name:
'sound'
,
choices:
default_choice:
0
},
{
type:
'select'
,
name:
'sound'
,
choices:
[
[
'Device default sound'
,
nil
],
[
'Pushover (default)'
,
'pushover'
],
...
...
@@ -57,7 +85,8 @@ module Integrations
[
'Pushover Echo (long)'
,
'echo'
],
[
'Up Down (long)'
,
'updown'
],
[
'None (silent)'
,
'none'
]
]
}
]
}
]
end
...
...
locale/gitlab.pot
View file @
b8c9c00d
...
...
@@ -11222,6 +11222,9 @@ msgstr ""
msgid "DevOps adoption"
msgstr ""
msgid "Devices (optional)"
msgstr ""
msgid "DevopsAdoption|%{adoptedCount}/%{featuresCount} %{title} features adopted"
msgstr ""
...
...
@@ -26804,34 +26807,34 @@ msgstr ""
msgid "PushoverService|%{user_name} pushed new branch \"%{ref}\"."
msgstr ""
msgid "PushoverService|
Get real-time notifications on your device
."
msgid "PushoverService|
Enter your application key
."
msgstr ""
msgid "PushoverService|
High Priority
"
msgid "PushoverService|
Enter your user key.
"
msgstr ""
msgid "PushoverService|
Leave blank for all active devices
"
msgid "PushoverService|
Get real-time notifications on your device.
"
msgstr ""
msgid "PushoverService|
Low P
riority"
msgid "PushoverService|
High p
riority"
msgstr ""
msgid "PushoverService|L
owest Priority
"
msgid "PushoverService|L
eave blank for all active devices.
"
msgstr ""
msgid "PushoverService|
Normal P
riority"
msgid "PushoverService|
Low p
riority"
msgstr ""
msgid "PushoverService|
See project %{project_full_name}
"
msgid "PushoverService|
Lowest priority
"
msgstr ""
msgid "PushoverService|
Total commits count: %{total_commits_count}
"
msgid "PushoverService|
Normal priority
"
msgstr ""
msgid "PushoverService|
Your application key
"
msgid "PushoverService|
See project %{project_full_name}
"
msgstr ""
msgid "PushoverService|
Your user key
"
msgid "PushoverService|
Total commits count: %{total_commits_count}
"
msgstr ""
msgid "Quarters"
...
...
@@ -35682,6 +35685,9 @@ msgstr ""
msgid "User is not allowed to resolve thread"
msgstr ""
msgid "User key"
msgstr ""
msgid "User key was successfully removed."
msgstr ""
...
...
spec/features/projects/services/user_activates_pushover_spec.rb
View file @
b8c9c00d
...
...
@@ -14,7 +14,7 @@ RSpec.describe 'User activates Pushover' do
fill_in
(
'API key'
,
with:
'verySecret'
)
fill_in
(
'User key'
,
with:
'verySecret'
)
fill_in
(
'Device'
,
with:
'myDevice'
)
select
(
'High
P
riority'
,
from:
'Priority'
)
select
(
'High
p
riority'
,
from:
'Priority'
)
select
(
'Bike'
,
from:
'Sound'
)
click_test_then_save_integration
(
expect_test_to_fail:
false
)
...
...
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