diff options
Diffstat (limited to 'lib/gitlab/slash_commands/issue_command.rb')
-rw-r--r-- | lib/gitlab/slash_commands/issue_command.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/gitlab/slash_commands/issue_command.rb b/lib/gitlab/slash_commands/issue_command.rb new file mode 100644 index 00000000000..3d96982b820 --- /dev/null +++ b/lib/gitlab/slash_commands/issue_command.rb @@ -0,0 +1,13 @@ +module Gitlab + module SlashCommands + class IssueCommand < BaseCommand + def self.available?(project) + project.issues_enabled? + end + + def collection + IssuesFinder.new(current_user, project_id: project.id).execute + end + end + end +end |