mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
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:
2
.github/workflows/labels.yml
vendored
2
.github/workflows/labels.yml
vendored
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user