Skip to content

Commit

Permalink
Fix invalid login access on missing author
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Jun 9, 2021
1 parent e5ba4f8 commit 27ff64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/handlers/event/push/PushLifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class PushLifecycleHandler<R> extends LifecycleHandler<R> {

const lifecycles: Lifecycle[] = [];
for (const push of pushes.filter(p => p && p.after)
.filter(p => p.commits.some(c => !users.includes(c.author.login)))
.filter(p => p.commits.some(c => !users.includes((c.author?.login || ""))))
.filter(p => (p.commits || []).filter(c => {
try {
for (const commit of commits) {
Expand Down

0 comments on commit 27ff64b

Please sign in to comment.