Replace to pipes instead

Signed-off-by: Ben Lambert <blam@spotify.com>
This commit is contained in:
Ben Lambert
2022-01-20 13:21:47 +01:00
committed by Fredrik Adelöw
parent 6d08f818a6
commit e053eb597a
+2 -2
View File
@@ -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 }) => ({