BigW Consortium Gitlab

Commit 4f20bf95 by Mark Chao Committed by Nick Thomas

Backport EE SlashCommand Refactor

parent 848ecbc7
module Gitlab
module SlashCommands
class Command < BaseCommand
COMMANDS = [
def self.commands
[
Gitlab::SlashCommands::IssueShow,
Gitlab::SlashCommands::IssueNew,
Gitlab::SlashCommands::IssueSearch,
Gitlab::SlashCommands::IssueMove,
Gitlab::SlashCommands::Deploy
].freeze
]
end
def execute
command, match = match_command
......@@ -37,7 +39,7 @@ module Gitlab
private
def available_commands
COMMANDS.select do |klass|
self.class.commands.keep_if do |klass|
klass.available?(project)
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