summaryrefslogtreecommitdiff
path: root/lib/gitlab/slash_commands/issue_command.rb
blob: 3d96982b820d8c59ab8b09121b6795992015c87b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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