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
57d7349e
Commit
57d7349e
authored
Nov 17, 2016
by
Ruben Davila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move definition of special command /cc.
parent
5ed1847e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/services/slash_commands/interpret_service.rb
app/services/slash_commands/interpret_service.rb
+5
-5
No files found.
app/services/slash_commands/interpret_service.rb
View file @
57d7349e
...
...
@@ -243,11 +243,6 @@ module SlashCommands
@updates
[
:wip_event
]
=
issuable
.
work_in_progress?
?
'unwip'
:
'wip'
end
# This is a dummy command, so that it appears in the autocomplete commands
desc
'CC'
params
'@user'
command
:cc
desc
'Set time estimate'
params
'<1w 3d 2h 14m>'
condition
do
...
...
@@ -295,6 +290,11 @@ module SlashCommands
@updates
[
:spend_time
]
=
:reset
end
# This is a dummy command, so that it appears in the autocomplete commands
desc
'CC'
params
'@user'
command
:cc
def
find_label_ids
(
labels_param
)
label_ids_by_reference
=
extract_references
(
labels_param
,
:label
).
map
(
&
:id
)
labels_ids_by_name
=
LabelsFinder
.
new
(
current_user
,
project_id:
project
.
id
,
name:
labels_param
.
split
).
execute
.
select
(
:id
)
...
...
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