Skip to content

Commit

Permalink
Handle empty body when mentioning (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
pattacini authored Sep 26, 2023
1 parent d20c601 commit 9160301
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/mentioning-comment-handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 9160301

Please sign in to comment.