Skip to content

Commit d57f87e

Browse files
[autofix.ci] apply automated fixes
1 parent d79af98 commit d57f87e

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

app/pages/about.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ function getSocialIcon(provider: string): string {
5151
return socialIcons[provider] ?? 'i-lucide:link'
5252
}
5353
54-
function getSocialLinks(person: { socialAccounts: SocialAccount[] }): { provider: string; url: string; icon: string }[] {
54+
function getSocialLinks(person: {
55+
socialAccounts: SocialAccount[]
56+
}): { provider: string; url: string; icon: string }[] {
5557
return person.socialAccounts.map(account => ({
5658
provider: account.provider,
5759
url: account.url,

server/api/contributors.get.ts

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ export interface GitHubContributor {
1717
socialAccounts: SocialAccount[]
1818
}
1919

20-
type GitHubAPIContributor = Omit<GitHubContributor, 'role' | 'sponsors_url' | 'bio' | 'socialAccounts'>
20+
type GitHubAPIContributor = Omit<
21+
GitHubContributor,
22+
'role' | 'sponsors_url' | 'bio' | 'socialAccounts'
23+
>
2124

2225
// Fallback when no GitHub token is available (e.g. preview environments).
2326
// Only stewards are shown as maintainers; everyone else is a contributor.
@@ -112,13 +115,16 @@ async function fetchGovernanceProfiles(
112115
}
113116

114117
const json = (await response.json()) as {
115-
data?: Record<string, {
116-
login: string
117-
hasSponsorsListing: boolean
118-
bio: string | null
119-
twitterUsername: string | null
120-
socialAccounts: { nodes: { provider: string; url: string }[] }
121-
} | null>
118+
data?: Record<
119+
string,
120+
{
121+
login: string
122+
hasSponsorsListing: boolean
123+
bio: string | null
124+
twitterUsername: string | null
125+
socialAccounts: { nodes: { provider: string; url: string }[] }
126+
} | null
127+
>
122128
}
123129

124130
const profiles = new Map<string, GovernanceProfile>()
@@ -133,7 +139,10 @@ async function fetchGovernanceProfiles(
133139
// single unified array. GitHub returns it separately because it
134140
// predates the socialAccounts field.
135141
if (user.twitterUsername && !socialAccounts.some(a => a.provider === 'TWITTER')) {
136-
socialAccounts.unshift({ provider: 'TWITTER', url: `https://x.com/${user.twitterUsername}` })
142+
socialAccounts.unshift({
143+
provider: 'TWITTER',
144+
url: `https://x.com/${user.twitterUsername}`,
145+
})
137146
}
138147
profiles.set(user.login, {
139148
hasSponsorsListing: user.hasSponsorsListing,

0 commit comments

Comments
 (0)