From 8f7703bf8a9243a231a05484f44f5013cfba20fc Mon Sep 17 00:00:00 2001 From: Cristian Molina Date: Tue, 24 Jan 2023 18:24:55 -0300 Subject: [PATCH] Rename Pullrequest method --- app/services/pull_request.rb | 2 +- app/services/slack_notification_service.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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