mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-03 16:04:30 +00:00
24 lines
530 B
Ruby
24 lines
530 B
Ruby
# 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
|
|
|
|
def slack_installation
|
|
slack_workspace_id = params[:team_id]
|
|
|
|
SlackIntegration.with_bot.find_by_team_id(slack_workspace_id)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|