Skip to content

Commit

Permalink
Merge pull request #30 from slovensko-digital/support-multiple-slacks
Browse files Browse the repository at this point in the history
add support for multiple slack integrations
  • Loading branch information
celuchmarek authored Oct 8, 2024
2 parents 7c819b2 + 6b3987d commit d43251a
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 d43251a

Please sign in to comment.