8000 fix: make logging better · coder/registry@b191321 · GitHub
[go: up one dir, main page]

Skip to content

Commit b191321

Browse files
committed
fix: make logging better
1 parent da735da commit b191321

File tree

1 file changed

+14
-2
lines changed
  • .github/scripts/readme-validation

1 file changed

+14
-2
lines changed

.github/scripts/readme-validation/main.go

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ const (
5050
profileStatusOfficial
5151
)
5252

53+
func (status contributorProfileStatus) String() string {
54+
switch status {
55+
case profileStatusOfficial:
56+
return "official"
57+
case profileStatusPartner:
58+
return "partner"
59+
default:
60+
return "community"
61+
}
62+
}
63+
5364
type contributorProfile struct {
5465
EmployeeGithubUsernames []string
5566
GithubUsername string
@@ -186,7 +197,7 @@ func validateContributorYaml(yml contributorFrontmatterWithFilepath) []error {
186197
errors = append(
187198
errors,
188199
fmt.Errorf(
189-
"%q (%q) is missing display name",
200+
"GitHub user %q (%q) is missing display name",
190201
yml.GithubUsername,
191202
yml.FilePath,
192203
),
@@ -326,6 +337,7 @@ func remapContributorProfile(
326337
Bio: frontmatter.Bio,
327338
LinkedinURL: frontmatter.LinkedinURL,
328339
SupportEmail: frontmatter.SupportEmail,
340+
WebsiteURL: frontmatter.WebsiteURL,
329341
}
330342

331343
if frontmatter.AvatarUrl != nil {
@@ -503,7 +515,7 @@ func backfillAvatarUrls(contributors map[string]contributorProfile) (int, int, e
503515
}
504516

505517
successfulBackfills++
506-
con.AvatarUrl = url
518+
con.AvatarUrl = url + "Not implemented yet"
507519
contributors[ghUsername] = con
508520
}()
509521
}

0 commit comments

Comments
 (0)
0