Fix a bug in comment meta tag detection
This commit is contained in:
parent
8e2b64d8b1
commit
f832f8e65b
@ -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}]`)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user