Skip to content

Commit c1b6dd8

Browse files
committed
perf: reduce github fan-out in example deploy and name checks
1 parent c5f647d commit c1b6dd8

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/routes/api/builder/deploy/check-name.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ export const Route = createFileRoute('/api/builder/deploy/check-name' as any)({
5959
},
6060
},
6161
},
62-
})
62+
})

src/utils/github-example.server.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,13 @@ export async function fetchExampleFiles(
183183
.filter((entry) => entry.type === 'blob')
184184
.filter(
185185
(entry) =>
186-
entry.path === normalizedExamplePath || entry.path.startsWith(pathPrefix),
186+
entry.path === normalizedExamplePath ||
187+
entry.path.startsWith(pathPrefix),
187188
)
188189
.map((entry) => ({
189190
relativePath:
190191
entry.path === normalizedExamplePath
191-
? entry.path.split('/').at(-1) ?? entry.path
192+
? (entry.path.split('/').at(-1) ?? entry.path)
192193
: entry.path.slice(pathPrefix.length),
193194
fullPath: entry.path,
194195
}))

src/utils/github-repo.server.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,5 +518,3 @@ export async function pushFiles(
518518

519519
return { success: true, commitSha: commit.sha }
520520
}
521-
522-

src/utils/intent-discovery.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,4 @@ export async function discoverIntentPackagesViaGitHub(): Promise<IntentGitHubDis
178178
}
179179

180180
return results
181-
}
181+
}

0 commit comments

Comments
 (0)