Skip to content

Commit beb2963

Browse files
committed
wip
1 parent 49f7ea3 commit beb2963

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": 1,
3+
"repositories": {
4+
"graphql/graphiql": {
5+
"status": "completed",
6+
"lastCursor": "b3c42a65160ba4878b5ea87d9e72385889856464 4096",
7+
"lastProcessed": "2025-09-17T21:49:19.053Z",
8+
"contributorsCount": 280
9+
}
10+
}
11+
}

scripts/sync-landing-schema/src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,7 @@ if (import.meta.url === pathToFileURL(process.argv[1] ?? "").href) {
149149
}
150150

151151
const onProgress = (data: { page: number; repoSlug: string }) => {
152-
process.stderr.write(
153-
`Fetching commits for ${data.repoSlug}: page ${data.page}`,
154-
)
152+
logger.log(`fetching page ${data.page}`, data.repoSlug)
155153
}
156154

157155
const onContributorFound = (

scripts/sync-landing-schema/src/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function formatMessage(message: string, context?: string): string {
2-
const timestamp = new Date().toLocaleDateString()
2+
const timestamp = new Date().toLocaleTimeString()
33
const prefix = context ? `${timestamp} | ${context} |` : `${timestamp} |`
44
return `${prefix} ${message}`
55
}

scripts/sync-landing-schema/src/state.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,11 @@ export interface State {
1616
repositories: {
1717
[repository: string]: RepositoryState
1818
}
19-
metadata: {
20-
totalContributors?: number
21-
lastFullSync?: string
22-
}
2319
}
2420

2521
const initialState: State = {
2622
version: 1,
2723
repositories: {},
28-
metadata: {},
2924
}
3025

3126
export async function readState(): Promise<State> {

0 commit comments

Comments
 (0)