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 }) => ({