Skip to content

Commit 9c062fa

Browse files
committed
Added some regexes to skip
1 parent c4951e5 commit 9c062fa

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

src/githubHelper.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -334,13 +334,17 @@ export default class GithubHelper {
334334
const stateChange =
335335
(/Status changed to .*/i.test(noteBody) &&
336336
!/Status changed to closed by commit.*/i.test(noteBody)) ||
337-
/changed milestone to .*/i.test(noteBody) ||
338-
/Milestone changed to .*/i.test(noteBody) ||
339-
/Reassigned to /i.test(noteBody) ||
340-
/added .* labels/i.test(noteBody) ||
341-
/Added ~.* label/i.test(noteBody) ||
342-
/removed ~.* label/i.test(noteBody) ||
343-
/mentioned in issue.*/i.test(noteBody);
337+
/^changed milestone to .*/i.test(noteBody) ||
338+
/^Milestone changed to .*/i.test(noteBody) ||
339+
/^(Re)*assigned to /i.test(noteBody) ||
340+
/^added .* labels/i.test(noteBody) ||
341+
/^Added ~.* label/i.test(noteBody) ||
342+
/^removed ~.* label/i.test(noteBody) ||
343+
/^mentioned in issue #\d+.*/i.test(noteBody) ||
344+
// /^marked this issue as related to #\d+/i.test(noteBody) ||
345+
/^mentioned in merge request !\d+/i.test(noteBody) ||
346+
/^changed the description.*/i.test(noteBody) ||
347+
/^changed title from.*to.*/i.test(noteBody);
344348

345349
const matchingComment = settings.skipMatchingComments.reduce(
346350
(a, b) => a || new RegExp(b, 'i').test(noteBody),

0 commit comments

Comments
 (0)