workflows/labels: handle null reviewer

Review user can be null when the user has deleted their account since
posting the review.

Fixes #417627
This commit is contained in:
Matt Sturgeon
2025-06-17 21:04:44 +01:00
parent ac564fab85
commit 2116e927da

View File

@@ -201,7 +201,7 @@ jobs:
pull_number: pull_request.number
}))
.filter(review => review.state == 'APPROVED')
.map(review => review.user.id)
.map(review => review.user?.id)
)
const maintainers = new Set(Object.keys(