debian-mirror-gitlab/lib/gitlab/slash_commands/incident_management/incident_command.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
437 B
Ruby
Raw Normal View History

2023-01-13 00:05:48 +05:30
# frozen_string_literal: true
module Gitlab
module SlashCommands
module IncidentManagement
class IncidentCommand < BaseCommand
def self.available?(project)
true
end
def collection
IssuesFinder.new(current_user, project_id: project.id, issue_types: :incident).execute
end
end
end
end
end
Gitlab::SlashCommands::IncidentManagement::IncidentCommand.prepend_mod