From b1985c9caa95141f473ad4f4bc6995ea0d90af63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=B8fgren?= Date: Mon, 29 Jun 2020 16:39:02 +0200 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index b356c7f..3cc1733 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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