mirror of
https://github.com/unsplash/comment-on-pr.git
synced 2024-11-10 09:02:32 +08:00
Use && rather than and.
This commit is contained in:
parent
d086f84434
commit
393c0d7eb9
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ end
|
|||
message = ARGV.join(' ')
|
||||
|
||||
coms = github.issue_comments(repo, pr["number"])
|
||||
duplicate = coms.find { |c| c["user"]["login"] == 'github-actions[bot]' and c["body"] == message }
|
||||
duplicate = coms.find { |c| c["user"]["login"] == "github-actions[bot]" && c["body"] == message }
|
||||
|
||||
if duplicate
|
||||
puts "The PR already contains a database change notification"
|
||||
|
|
Loading…
Reference in a new issue