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
36dc28fd
Commit
36dc28fd
authored
Apr 24, 2018
by
Athar Hameed
Committed by
Sean McGivern
Apr 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unassign slash command preview
parent
c7b12a41
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
app/services/quick_actions/interpret_service.rb
app/services/quick_actions/interpret_service.rb
+4
-2
changelogs/unreleased/4950-unassign-slash-command-preview-fix.yml
...gs/unreleased/4950-unassign-slash-command-preview-fix.yml
+5
-0
No files found.
app/services/quick_actions/interpret_service.rb
View file @
36dc28fd
...
@@ -138,8 +138,10 @@ module QuickActions
...
@@ -138,8 +138,10 @@ module QuickActions
'Remove assignee'
'Remove assignee'
end
end
end
end
explanation
do
explanation
do
|
users
=
nil
|
"Removes
#{
'assignee'
.
pluralize
(
issuable
.
assignees
.
size
)
}
#{
issuable
.
assignees
.
map
(
&
:to_reference
).
to_sentence
}
."
assignees
=
issuable
.
assignees
assignees
&=
users
if
users
.
present?
&&
issuable
.
allows_multiple_assignees?
"Removes
#{
'assignee'
.
pluralize
(
assignees
.
size
)
}
#{
assignees
.
map
(
&
:to_reference
).
to_sentence
}
."
end
end
params
do
params
do
issuable
.
allows_multiple_assignees?
?
'@user1 @user2'
:
''
issuable
.
allows_multiple_assignees?
?
'@user1 @user2'
:
''
...
...
changelogs/unreleased/4950-unassign-slash-command-preview-fix.yml
0 → 100644
View file @
36dc28fd
---
title
:
Fix unassign slash command preview
merge_request
:
18447
author
:
type
:
fixed
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