Skip to content

Commit fe06007

Browse files
authored
Merge pull request #124 from mdbenito/fix/ignore-more-issue-activity
Added some regexes to skip issue notes
2 parents a92af49 + 9c062fa commit fe06007

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
@@ -549,13 +549,17 @@ export class GithubHelper {
549549
const stateChange =
550550
(/Status changed to .*/i.test(noteBody) &&
551551
!/Status changed to closed by commit.*/i.test(noteBody)) ||
552-
/changed milestone to .*/i.test(noteBody) ||
553-
/Milestone changed to .*/i.test(noteBody) ||
554-
/Reassigned to /i.test(noteBody) ||
555-
/added .* labels/i.test(noteBody) ||
556-
/Added ~.* label/i.test(noteBody) ||
557-
/removed ~.* label/i.test(noteBody) ||
558-
/mentioned in issue.*/i.test(noteBody);
552+
/^changed milestone to .*/i.test(noteBody) ||
553+
/^Milestone changed to .*/i.test(noteBody) ||
554+
/^(Re)*assigned to /i.test(noteBody) ||
555+
/^added .* labels/i.test(noteBody) ||
556+
/^Added ~.* label/i.test(noteBody) ||
557+
/^removed ~.* label/i.test(noteBody) ||
558+
/^mentioned in issue #\d+.*/i.test(noteBody) ||
559+
// /^marked this issue as related to #\d+/i.test(noteBody) ||
560+
/^mentioned in merge request !\d+/i.test(noteBody) ||
561+
/^changed the description.*/i.test(noteBody) ||
562+
/^changed title from.*to.*/i.test(noteBody);
559563

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

0 commit comments

Comments
 (0)