Commit 657838f1 authored by Z.J. van de Weg's avatar Z.J. van de Weg

fixup! issue and mergerequest slash command for mattermost

parent 9d8ca60d
...@@ -25,7 +25,7 @@ class Project < ActiveRecord::Base ...@@ -25,7 +25,7 @@ class Project < ActiveRecord::Base
delegate :feature_available?, :builds_enabled?, :wiki_enabled?, delegate :feature_available?, :builds_enabled?, :wiki_enabled?,
:merge_requests_enabled?, :issues_enabled?, to: :project_feature, :merge_requests_enabled?, :issues_enabled?, to: :project_feature,
allow_nil: true allow_nil: true
default_value_for :archived, false default_value_for :archived, false
default_value_for :visibility_level, gitlab_config_features.visibility_level default_value_for :visibility_level, gitlab_config_features.visibility_level
......
...@@ -32,7 +32,7 @@ module Mattermost ...@@ -32,7 +32,7 @@ module Mattermost
if result.respond_to?(:count) if result.respond_to?(:count)
if count > 1 if count > 1
#TODO # TODO
return resource_list(result) return resource_list(result)
else else
result = result.first result = result.first
......
...@@ -20,7 +20,7 @@ module Mattermost ...@@ -20,7 +20,7 @@ module Mattermost
private private
#TODO implement create # TODO implement create
def subcommands def subcommands
%w[creates search show] %w[creates search show]
end end
...@@ -42,7 +42,7 @@ module Mattermost ...@@ -42,7 +42,7 @@ module Mattermost
subcommand = split[1] subcommand = split[1]
args = split[2..-1] args = split[2..-1]
return subcommand, args [subcommand, args]
end end
end end
end end
......
...@@ -39,7 +39,7 @@ module Mattermost ...@@ -39,7 +39,7 @@ module Mattermost
subcommand = split[1] subcommand = split[1]
args = split[2..-1] args = split[2..-1]
return subcommand, args [subcommand, args]
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment