From e053eb597a120e4da793a71e86dc7d115436ab5b Mon Sep 17 00:00:00 2001 From: Ben Lambert Date: Thu, 20 Jan 2022 13:21:47 +0100 Subject: [PATCH] Replace to pipes instead Signed-off-by: Ben Lambert --- scripts/goalie-labels.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/goalie-labels.js b/scripts/goalie-labels.js index b706eba7fb..2534cd0c34 100644 --- a/scripts/goalie-labels.js +++ b/scripts/goalie-labels.js @@ -51,8 +51,8 @@ const getRepoEvents = async ({ github, context, pull_number }) => { type: 'review', })), ...commits.map(({ commit, author, committer }) => ({ - user: author ?? committer, - updated_at: commit.author.date ?? commit.committer.date, + user: author || committer, + updated_at: commit.author.date || commit.committer.date, type: 'commit', })), ...pullComments.map(({ user, updated_at }) => ({