We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d3c046 commit 9ea2c4bCopy full SHA for 9ea2c4b
.github/scripts/bot-gfi-assign-on-comment.js
@@ -11,13 +11,12 @@ const UNASSIGNED_GFI_SEARCH_URL =
11
/// HELPERS FOR ASSIGNING ///
12
13
/**
14
- * Returns true if /assign appears at the start of a line or comment
15
- * Optionally preceded or followed by whitespace
+ * Returns true if /assign appears in comment
16
*/
17
function commentRequestsAssignment(body) {
18
const matches =
19
typeof body === 'string' &&
20
- /(^|\n)\s*\/assign(\s|$)/i.test(body);
+ /\b\/assign\b/i.test(body);
21
22
console.log('[gfi-assign] commentRequestsAssignment:', {
23
body,
0 commit comments