Welcome to mirror list, hosted at ThFree Co, Russian Federation.

issue_command.rb « slash_commands « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4c8dc4b1784cc2666a5d2a67cf98e44455f0ae23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

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