Update entrypoint.sh

This commit is contained in:
Tobias Løfgren 2020-06-29 16:39:02 +02:00 committed by GitHub
parent a37a2c6369
commit b1985c9caa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ coms = github.issue_comments(repo, pr_number)
if check_duplicate_msg == "true"
puts "duplicate_msg_pattern: #{duplicate_msg_pattern}"
if duplicate_msg_pattern != nil
duplicate = coms.find { |c| (c["body"] =~ (Regexp.new duplicate_msg_pattern)) != nil }
duplicate = coms.find { |c| (c["body"] =~ /Great job/) != nil }
else
duplicate = coms.find { |c| c["body"] == message }
end