Don't pull PR's comments if we don't check duplicate

This commit is contained in:
Alexandre Morignot 2020-09-10 10:57:05 +02:00
parent 85a56be792
commit 5d96454a33
No known key found for this signature in database
GPG key ID: E6D384F2C2705C96

View file

@ -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