workflows/labels: handle null reviewer

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

Fixes #417627

(cherry picked from commit 2116e927da)
This commit is contained in:
Matt Sturgeon
2025-06-17 21:04:44 +01:00
committed by github-actions[bot]
parent 8f49bca3dc
commit e3f742f97c

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(