Fix a bug in comment meta tag detection

This commit is contained in:
Jérémie Astori 2018-12-10 01:17:19 -05:00
parent 8e2b64d8b1
commit f832f8e65b
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8

View File

@ -525,7 +525,7 @@ function hasLabel(labels, expected) {
function hasAnnotatedComment(comments, expected) { function hasAnnotatedComment(comments, expected) {
return comments && comments.nodes.some(({authorAssociation, body}) => return comments && comments.nodes.some(({authorAssociation, body}) =>
["OWNER", "MEMBER"].includes(authorAssociation) && ["OWNER", "MEMBER"].includes(authorAssociation) &&
body.split("\n").includes(`[${expected}]`) body.split("\r\n").includes(`[${expected}]`)
); );
} }