issue_command.rb 272 Bytes
Newer Older
1
module Gitlab
2
  module SlashCommands
3
    class IssueCommand < BaseCommand
4
      def self.available?(project)
5
        project.issues_enabled?
6 7 8
      end

      def collection
9
        IssuesFinder.new(current_user, project_id: project.id).execute
10 11 12 13
      end
    end
  end
end