From 784103f221cb29c55c4f0d1cf096881e3acba416 Mon Sep 17 00:00:00 2001 From: Adam Tranquilla Date: Fri, 19 Apr 2024 13:42:59 -0600 Subject: [PATCH] default author name not lined up --- src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 53bd22a..ca16e8d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,10 +11,11 @@ const run = async (): Promise => { .split(',') .map((user) => user.trim()); - console.log(ignoredUsers); - const author = context.payload.pull_request?.user.login; + console.log(ignoredUsers); + console.log(author); + if (author === 'dependabot' || ignoredUsers.includes(author)) { console.log(`Skipping the action because the pull request is created by ${author}`);