mirror of
https://github.com/unsplash/comment-on-pr.git
synced 2024-09-20 07:36:02 +08:00
Update entrypoint.sh
This commit is contained in:
parent
a37a2c6369
commit
b1985c9caa
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue