From 9160301ca45a1177ba9adaf0430ffe348820b7dd Mon Sep 17 00:00:00 2001 From: Ugo Pattacini Date: Tue, 26 Sep 2023 17:19:54 +0200 Subject: [PATCH] Handle empty body when mentioning (#196) --- scripts/mentioning-comment-handler.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/mentioning-comment-handler.rb b/scripts/mentioning-comment-handler.rb index 974dbc3..9607144 100755 --- a/scripts/mentioning-comment-handler.rb +++ b/scripts/mentioning-comment-handler.rb @@ -81,6 +81,11 @@ body = info.body author = info.user.login +if body.nil? then + puts "Empty message detected 🤷🏻" + exit 0 +end + # cycle over repo's users collaborators = "" repo_metadata.each { |user, props|