Skip to content

Commit

Permalink
default author name not lined up
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTranquilla committed Apr 19, 2024
1 parent 7cc05cc commit 784103f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ const run = async (): Promise<void> => {
.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}`);

Expand Down

0 comments on commit 784103f

Please sign in to comment.