BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
8b41c406
Commit
8b41c406
authored
Apr 24, 2018
by
Sean McGivern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '4950-unassign-slash-command-preview-fix' into 'master'
Fix unassign slash command preview See merge request gitlab-org/gitlab-ce!18447
parents
c7b12a41
36dc28fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
interpret_service.rb
app/services/quick_actions/interpret_service.rb
+4
-2
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 @
8b41c406
...
...
@@ -138,8 +138,10 @@ module QuickActions
'Remove assignee'
end
end
explanation
do
"Removes
#{
'assignee'
.
pluralize
(
issuable
.
assignees
.
size
)
}
#{
issuable
.
assignees
.
map
(
&
:to_reference
).
to_sentence
}
."
explanation
do
|
users
=
nil
|
assignees
=
issuable
.
assignees
assignees
&=
users
if
users
.
present?
&&
issuable
.
allows_multiple_assignees?
"Removes
#{
'assignee'
.
pluralize
(
assignees
.
size
)
}
#{
assignees
.
map
(
&
:to_reference
).
to_sentence
}
."
end
params
do
issuable
.
allows_multiple_assignees?
?
'@user1 @user2'
:
''
...
...
changelogs/unreleased/4950-unassign-slash-command-preview-fix.yml
0 → 100644
View file @
8b41c406
---
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