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
d15bad85
Commit
d15bad85
authored
Nov 03, 2020
by
Gary Holtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 3 suggestion(s) to 2 file(s)
parent
d2e601ae
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
doc/user/project/quick_actions.md
doc/user/project/quick_actions.md
+1
-1
lib/gitlab/quick_actions/merge_request_actions.rb
lib/gitlab/quick_actions/merge_request_actions.rb
+2
-2
locale/gitlab.pot
locale/gitlab.pot
+2
-2
spec/services/quick_actions/interpret_service_spec.rb
spec/services/quick_actions/interpret_service_spec.rb
+2
-2
No files found.
doc/user/project/quick_actions.md
View file @
d15bad85
...
...
@@ -83,7 +83,7 @@ The following quick actions are applicable to descriptions, discussions and thre
|
`/unlock`
| ✓ | ✓ | | Unlock the discussions. |
|
`/unsubscribe`
| ✓ | ✓ | ✓ | Unsubscribe from notifications. |
|
`/weight <value>`
| ✓ | | | Set weight. Valid options for
`<value>`
include
`0`
,
`1`
,
`2`
, and so on.
**(STARTER)**
|
|
`/wip`
| | ✓ | | Toggle the
D
raft status. |
|
`/wip`
| | ✓ | | Toggle the
d
raft status. |
|
`/zoom <Zoom URL>`
| ✓ | | | Add Zoom meeting to this issue (
[
introduced in GitLab 12.4
](
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/16609
)
). |
## Autocomplete characters
...
...
lib/gitlab/quick_actions/merge_request_actions.rb
View file @
d15bad85
...
...
@@ -68,9 +68,9 @@ module Gitlab
execution_message
do
noun
=
quick_action_target
.
to_ability_name
.
humanize
(
capitalize:
false
)
if
quick_action_target
.
work_in_progress?
_
(
"Unmarked this %{noun} as
D
raft."
)
_
(
"Unmarked this %{noun} as
a d
raft."
)
else
_
(
"Marked this %{noun} as
D
raft."
)
_
(
"Marked this %{noun} as
a d
raft."
)
end
% {
noun:
noun
}
end
...
...
locale/gitlab.pot
View file @
d15bad85
...
...
@@ -16221,7 +16221,7 @@ msgstr ""
msgid "Marked For Deletion At - %{deletion_time}"
msgstr ""
msgid "Marked this %{noun} as
D
raft."
msgid "Marked this %{noun} as
a d
raft."
msgstr ""
msgid "Marked this issue as a duplicate of %{duplicate_param}."
...
...
@@ -28589,7 +28589,7 @@ msgstr ""
msgid "Unlocks the discussion."
msgstr ""
msgid "Unmarked this %{noun} as
D
raft."
msgid "Unmarked this %{noun} as
a d
raft."
msgstr ""
msgid "Unmarks this %{noun} as a draft."
...
...
spec/services/quick_actions/interpret_service_spec.rb
View file @
d15bad85
...
...
@@ -322,7 +322,7 @@ RSpec.describe QuickActions::InterpretService do
it
'returns the wip message'
do
_
,
_
,
message
=
service
.
execute
(
content
,
issuable
)
expect
(
message
).
to
eq
(
"Marked this
#{
issuable
.
to_ability_name
.
humanize
(
capitalize:
false
)
}
as
D
raft."
)
expect
(
message
).
to
eq
(
"Marked this
#{
issuable
.
to_ability_name
.
humanize
(
capitalize:
false
)
}
as
a d
raft."
)
end
end
...
...
@@ -338,7 +338,7 @@ RSpec.describe QuickActions::InterpretService do
issuable
.
update!
(
title:
issuable
.
wip_title
)
_
,
_
,
message
=
service
.
execute
(
content
,
issuable
)
expect
(
message
).
to
eq
(
"Unmarked this
#{
issuable
.
to_ability_name
.
humanize
(
capitalize:
false
)
}
as
D
raft."
)
expect
(
message
).
to
eq
(
"Unmarked this
#{
issuable
.
to_ability_name
.
humanize
(
capitalize:
false
)
}
as
a d
raft."
)
end
end
...
...
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