Doesn't support optional chaining
Signed-off-by: Ben Lambert <blam@spotify.com>
This commit is contained in:
committed by
Fredrik Adelöw
parent
e053eb597a
commit
aad66df1ba
@@ -69,7 +69,7 @@ const getRepoEvents = async ({ github, context, pull_number }) => {
|
||||
|
||||
return events
|
||||
.sort((a, b) => new Date(a.updated_at) - new Date(b.updated_at))
|
||||
.filter(({ user, ...evt }) => !user?.login.includes('[bot]') ?? false);
|
||||
.filter(({ user, ...evt }) => user ? !user.login.includes('[bot]') : false);
|
||||
};
|
||||
|
||||
module.exports = async ({ github, context, core }) => {
|
||||
|
||||
Reference in New Issue
Block a user