mirror of
https://github.com/unsplash/comment-on-pr.git
synced 2024-11-10 09:02:32 +08:00
Merge pull request #18 from lmammino/patch-1
More generic error message in case of duplication
This commit is contained in:
commit
4f102935dc
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ coms = github.issue_comments(repo, pr_number)
|
|||
duplicate = coms.find { |c| c["user"]["login"] == "github-actions[bot]" && c["body"] == message }
|
||||
|
||||
if duplicate
|
||||
puts "The PR already contains a database change notification"
|
||||
puts "The PR already contains this message"
|
||||
exit(0)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue