Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
3c53461a71f1
Commit
3c53461a
authored
Nov 12, 2016
by
Z.J. van de Weg
Browse files
fixup! issue and mergerequest slash command for mattermost
parent
9a71882fbe7d
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
3c53461a
...
...
@@ -25,7 +25,7 @@
delegate
:feature_available?
,
:builds_enabled?
,
:wiki_enabled?
,
:merge_requests_enabled?
,
:issues_enabled?
,
to: :project_feature
,
allow_nil:
true
allow_nil:
true
default_value_for
:archived
,
false
default_value_for
:visibility_level
,
gitlab_config_features
.
visibility_level
...
...
app/services/mattermost/command_service.rb
View file @
3c53461a
...
...
@@ -32,7 +32,7 @@
if
result
.
respond_to?
(
:count
)
if
count
>
1
#TODO
#
TODO
return
resource_list
(
result
)
else
result
=
result
.
first
...
...
app/services/mattermost/commands/issue_service.rb
View file @
3c53461a
...
...
@@ -20,7 +20,7 @@
private
#TODO implement create
#
TODO implement create
def
subcommands
%w[creates search show]
end
...
...
@@ -42,7 +42,7 @@
subcommand
=
split
[
1
]
args
=
split
[
2
..-
1
]
return
subcommand
,
args
[
subcommand
,
args
]
end
end
end
...
...
app/services/mattermost/commands/merge_request_service.rb
View file @
3c53461a
...
...
@@ -39,7 +39,7 @@
subcommand
=
split
[
1
]
args
=
split
[
2
..-
1
]
return
subcommand
,
args
[
subcommand
,
args
]
end
end
end
...
...
Write
Preview
Supports
Markdown
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