chore: do not credit bot users

This commit is contained in:
Jan De Dobbeleer 2022-12-02 08:03:49 +01:00
parent 47e1f466ce
commit a3fb4443fa
No known key found for this signature in database
GPG key ID: D9FE64756B9A61E6

View file

@ -19,7 +19,7 @@ jobs:
const { repo: { owner, repo } } = context; const { repo: { owner, repo } } = context;
const pr = context.payload.pull_request; const pr = context.payload.pull_request;
if (pr.user.id === 2492783 || pr.user.id === 46447321) { if (pr.user.id === 2492783 || pr.user.type === "Bot") {
console.log('No credit for maintainer/bot, stop processing'); console.log('No credit for maintainer/bot, stop processing');
return; return;
} }