File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed
scripts/sync-landing-schema Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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 = (
Original file line number Diff line number Diff line change 11function 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}
Original file line number Diff line number Diff 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
2521const initialState : State = {
2622 version : 1 ,
2723 repositories : { } ,
28- metadata : { } ,
2924}
3025
3126export async function readState ( ) : Promise < State > {
You can’t perform that action at this time.
0 commit comments