fix: correctly check for pr author

This commit is contained in:
2018-10-23 12:23:35 -07:00
parent 3db973febc
commit f4c3e02c1a

View File

@@ -42,7 +42,7 @@ async function ghActionBot() {
logger.debug(`SKIP #${pull.number}: state is ${pull.state}`); logger.debug(`SKIP #${pull.number}: state is ${pull.state}`);
return false; // filter out any closed pulls return false; // filter out any closed pulls
} }
if (PULL_AUTHOR_FILTER && !pull.owner !== PULL_AUTHOR_FILTER) { if (PULL_AUTHOR_FILTER && pull.owner !== PULL_AUTHOR_FILTER) {
logger.debug(`SKIP #${pull.number}: author is ${pull.owner}`); logger.debug(`SKIP #${pull.number}: author is ${pull.owner}`);
return false; // filter on owner return false; // filter on owner
} }