From b19132140a45c4707dfed9c622690cf1713cd1d8 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 8 Apr 2025 17:29:34 +0000 Subject: [PATCH] fix: make logging better --- .github/scripts/readme-validation/main.go | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/scripts/readme-validation/main.go b/.github/scripts/readme-validation/main.go index 7ee22c31..c942be6b 100644 --- a/.github/scripts/readme-validation/main.go +++ b/.github/scripts/readme-validation/main.go @@ -50,6 +50,17 @@ const ( profileStatusOfficial ) +func (status contributorProfileStatus) String() string { + switch status { + case profileStatusOfficial: + return "official" + case profileStatusPartner: + return "partner" + default: + return "community" + } +} + type contributorProfile struct { EmployeeGithubUsernames []string GithubUsername string @@ -186,7 +197,7 @@ func validateContributorYaml(yml contributorFrontmatterWithFilepath) []error { errors = append( errors, fmt.Errorf( - "%q (%q) is missing display name", + "GitHub user %q (%q) is missing display name", yml.GithubUsername, yml.FilePath, ), @@ -326,6 +337,7 @@ func remapContributorProfile( Bio: frontmatter.Bio, LinkedinURL: frontmatter.LinkedinURL, SupportEmail: frontmatter.SupportEmail, + WebsiteURL: frontmatter.WebsiteURL, } if frontmatter.AvatarUrl != nil { @@ -503,7 +515,7 @@ func backfillAvatarUrls(contributors map[string]contributorProfile) (int, int, e } successfulBackfills++ - con.AvatarUrl = url + con.AvatarUrl = url + "Not implemented yet" contributors[ghUsername] = con }() }