diff --git a/entrypoint.sh b/entrypoint.sh index 54d5f2e..9dc8dd2 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -37,9 +37,8 @@ else pr_number = pr["number"] end -coms = github.issue_comments(repo, pr_number) - if check_duplicate_msg == "true" + coms = github.issue_comments(repo, pr_number) duplicate = coms.find { |c| c["body"] == message } if duplicate