reading users field from the reviews object for calculating if reviewers have been set

This commit is contained in:
Adam Brown 2022-08-02 12:34:36 +01:00
parent ba5d6c9108
commit c99f67bea4

View file

@ -102,6 +102,6 @@ if (hasPngs) {
}
// Check for reviewers
if (github.requested_reviewers.length == 0 && !pr.draft) {
if (github.requested_reviewers.users.length == 0 && !pr.draft) {
warn("Please add a reviewer to your PR.")
}