From 7b8736b33658dfd2c1c545789c53ceac574b9ff3 Mon Sep 17 00:00:00 2001 From: Jim Bishopp Date: Fri, 16 Feb 2024 15:27:31 -0800 Subject: [PATCH] bot: Error when no reviewers are defined --- bot/internal/review/review.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bot/internal/review/review.go b/bot/internal/review/review.go index 96aeb633..e0d23a25 100644 --- a/bot/internal/review/review.go +++ b/bot/internal/review/review.go @@ -175,6 +175,7 @@ func FromString(e *env.Environment, reviewers string) (*Assignments, error) { if err := json.Unmarshal([]byte(reviewers), &c); err != nil { return nil, trace.Wrap(err) } + log.Printf("Reviewers loaded with %d cloud and %d core reviewers", len(c.CloudReviewers), len(c.CoreReviewers)) r, err := New(&c) if err != nil {