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
b209eb12
Commit
b209eb12
authored
Jun 12, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve app/services/slash_commands/interpret_service.rb for CE->EE
parent
cf684b4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
app/services/slash_commands/interpret_service.rb
app/services/slash_commands/interpret_service.rb
+2
-8
No files found.
app/services/slash_commands/interpret_service.rb
View file @
b209eb12
...
...
@@ -92,15 +92,13 @@ module SlashCommands
desc
'Assign'
explanation
do
|
users
|
<<<<<<<
HEAD
## EE-specific
users
=
issuable
.
is_a?
(
Issue
)
?
users
:
users
.
take
(
1
)
"Assigns
#{
users
.
map
(
&
:to_reference
).
to_sentence
}
."
end
params
do
## EE-specific
issuable
.
is_a?
(
Issue
)
?
'@user1 @user2'
:
'@user'
=======
"Assigns
#{
users
.
first
.
to_reference
}
."
if
users
.
any?
>>>>>>>
ce
-
com
/
master
end
condition
do
current_user
.
can?
(
:"admin_
#{
issuable
.
to_ability_name
}
"
,
project
)
...
...
@@ -112,12 +110,8 @@ module SlashCommands
next
if
users
.
empty?
if
issuable
.
is_a?
(
Issue
)
<<<<<<<
HEAD
# EE specific. In CE we should replace one assignee with another
@updates
[
:assignee_ids
]
=
issuable
.
assignees
.
pluck
(
:id
)
+
users
.
map
(
&
:id
)
=======
@updates
[
:assignee_ids
]
=
[
users
.
last
.
id
]
>>>>>>>
ce
-
com
/
master
else
@updates
[
:assignee_id
]
=
users
.
last
.
id
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