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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/slash_commands/incident_management/incident_command.rb')
-rw-r--r--lib/gitlab/slash_commands/incident_management/incident_command.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/gitlab/slash_commands/incident_management/incident_command.rb b/lib/gitlab/slash_commands/incident_management/incident_command.rb
index 3fa08621777..1c870efe8b1 100644
--- a/lib/gitlab/slash_commands/incident_management/incident_command.rb
+++ b/lib/gitlab/slash_commands/incident_management/incident_command.rb
@@ -11,9 +11,13 @@ module Gitlab
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
-
-Gitlab::SlashCommands::IncidentManagement::IncidentCommand.prepend_mod