Skip to content

Commit e82c880

Browse files
committed
validate that github must be set for all persons
1 parent b2de05f commit e82c880

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

generator/app.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,11 @@ func (c *Context) Validate() []error {
477477
}
478478
for prefix, persons := range group.Leadership.PrefixToPersonMap() {
479479
for _, person := range persons {
480+
if person.GitHub == "" {
481+
errors = append(errors, fmt.Errorf("%s: %s: github is empty but should be set", group.Dir, prefix))
482+
// without github key we can't check the rest, and this is going to fail validation anyhow
483+
continue
484+
}
480485
if val, ok := people[person.GitHub]; ok {
481486
// non-emeritus must have email and company set
482487
if prefix != "emeritus_lead" {

0 commit comments

Comments
 (0)