Skip to content

Commit

Permalink
Fix review fetch ignore settings
Browse files Browse the repository at this point in the history
Add Travisbuddy as an ignore author,
fix ack & unack in ignore content.

Fixes #149
  • Loading branch information
li-boxuan committed Aug 4, 2018
1 parent d1a7ea3 commit 38a94ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions script/fetch-issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/github-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 38a94ce

Please sign in to comment.