diff --git a/app/services/pull_request.rb b/app/services/pull_request.rb index 503f1de..4dc38fb 100644 --- a/app/services/pull_request.rb +++ b/app/services/pull_request.rb @@ -34,7 +34,7 @@ def on_hold_label?(label) label.downcase == ON_HOLD.downcase end - def blacklisted? + def blocklisted? User.where(github_name: username, blacklisted: true).exists? end end diff --git a/app/services/slack_notification_service.rb b/app/services/slack_notification_service.rb index c7a34e0..f0a79be 100644 --- a/app/services/slack_notification_service.rb +++ b/app/services/slack_notification_service.rb @@ -33,7 +33,7 @@ def initialize(params) end def send_notification - return if pr.blacklisted? + return if pr.blocklisted? send(ACTION_METHODS[action]) if ACTION_METHODS.key? action end