Skip to content

Commit

Permalink
add support for multiple slack integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
celuchmarek committed Oct 8, 2024
1 parent 7c819b2 commit 6b3987d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tasks/uvobot.rake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ namespace :uvobot do
notifiers = []

if ENV['UVOBOT_SLACK_WEBHOOK']
notifiers << Uvobot::Notifications::SlackNotifier.new(ENV.fetch('UVOBOT_SLACK_WEBHOOK'))
ENV.fetch('UVOBOT_SLACK_WEBHOOK').split(',').each do |url|
notifiers << Uvobot::Notifications::SlackNotifier.new(url)
end
end

if ENV['DISCOURSE_URL']
Expand Down

0 comments on commit 6b3987d

Please sign in to comment.