From 38a94ce8e8711369e58502fefda67d4c479afc50 Mon Sep 17 00:00:00 2001 From: Boxuan Li Date: Sat, 4 Aug 2018 16:24:00 +0800 Subject: [PATCH] Fix review fetch ignore settings Add Travisbuddy as an ignore author, fix ack & unack in ignore content. Fixes https://github.com/coala/gh-board/issues/149 --- script/fetch-issues.js | 4 ++-- src/github-client.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/script/fetch-issues.js b/script/fetch-issues.js index a2b50a49..e08d58e8 100644 --- a/script/fetch-issues.js +++ b/script/fetch-issues.js @@ -25,13 +25,13 @@ if (isDeployPreview) { // review will be ignored if it's written by any author specified here // delimiter: space const ignoreAuthor = process.env.IGNORE_REVIEW_AUTHOR || - 'gitmate-bot rultor'; + 'gitmate-bot rultor TravisBuddy'; // review will be ignored if it matches any string specified here // it can be a literal or a regular expression // delimiter: space const ignoreContent = process.env.IGNORE_REVIEW_CONTENT || - '@gitmate-bot @rultor /^(unack|ack)/g'; + '@gitmate-bot @rultor ^(unack|ack)'; // Need to instantiate a new object every time, since it doesn't // support concurrency diff --git a/src/github-client.js b/src/github-client.js index 1e597e0c..96351186 100644 --- a/src/github-client.js +++ b/src/github-client.js @@ -223,7 +223,7 @@ class Client extends EventEmitter { // it is a must to return a new instance as there is no concurrency support // see github-graphql.js for more details const ignoreAuthor = 'gitmate-bot rultor TravisBuddy'; - const ignoreContent = '@gitmate-bot @rultor /^(unack|ack)/g'; + const ignoreContent = '@gitmate-bot @rultor ^(unack|ack)'; return new GraphQLClient(token, ignoreAuthor, ignoreContent, emitter); } getAnonymousOcto() {