blob: 1c870efe8b1972ed98d0fe2a6c039fb4ac4c125a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# 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
|