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.
2 parents 1c22812 + 8493831 commit c2060c2Copy full SHA for c2060c2
.github/scripts/bot-gfi-assign-on-comment.js
@@ -11,12 +11,12 @@ const UNASSIGNED_GFI_SEARCH_URL =
11
/// HELPERS FOR ASSIGNING ///
12
13
/**
14
- * Returns true if /assign appears in comment
+ * Returns true if /assign appears as a standalone command in the comment
15
*/
16
function commentRequestsAssignment(body) {
17
const matches =
18
typeof body === 'string' &&
19
- /\b\/assign\b/i.test(body);
+ /(^|\s)\/assign(\s|$)/i.test(body);
20
21
console.log('[gfi-assign] commentRequestsAssignment:', {
22
body,
0 commit comments