Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/scripts/bot-gfi-assign-on-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ const UNASSIGNED_GFI_SEARCH_URL =
/// HELPERS FOR ASSIGNING ///

/**
* Returns true if /assign appears at the start of a line or comment
* Optionally preceded or followed by whitespace
* Returns true if /assign appears in comment
*/
function commentRequestsAssignment(body) {
const matches =
typeof body === 'string' &&
/(^|\n)\s*\/assign(\s|$)/i.test(body);
/\b\/assign\b/i.test(body);

console.log('[gfi-assign] commentRequestsAssignment:', {
body,
Expand Down
Loading