@@ -22,7 +22,7 @@ async function fetchRepoContentsCloudflare(repo: string, githubToken?: string) {
2222 const repoResponse = await fetch ( `${ baseUrl } /repos/${ repo } ` , {
2323 headers : {
2424 Accept : 'application/vnd.github.v3+json' ,
25- 'User-Agent' : 'bolt.diy -app' ,
25+ 'User-Agent' : 'codinit.dev -app' ,
2626 ...( githubToken ? { Authorization : `Bearer ${ githubToken } ` } : { } ) ,
2727 } ,
2828 } ) ;
@@ -38,7 +38,7 @@ async function fetchRepoContentsCloudflare(repo: string, githubToken?: string) {
3838 const treeResponse = await fetch ( `${ baseUrl } /repos/${ repo } /git/trees/${ defaultBranch } ?recursive=1` , {
3939 headers : {
4040 Accept : 'application/vnd.github.v3+json' ,
41- 'User-Agent' : 'bolt.diy -app' ,
41+ 'User-Agent' : 'codinit.dev -app' ,
4242 ...( githubToken ? { Authorization : `Bearer ${ githubToken } ` } : { } ) ,
4343 } ,
4444 } ) ;
@@ -84,7 +84,7 @@ async function fetchRepoContentsCloudflare(repo: string, githubToken?: string) {
8484 const contentResponse = await fetch ( `${ baseUrl } /repos/${ repo } /contents/${ file . path } ` , {
8585 headers : {
8686 Accept : 'application/vnd.github.v3+json' ,
87- 'User-Agent' : 'bolt.diy -app' ,
87+ 'User-Agent' : 'codinit.dev -app' ,
8888 ...( githubToken ? { Authorization : `Bearer ${ githubToken } ` } : { } ) ,
8989 } ,
9090 } ) ;
@@ -128,7 +128,7 @@ async function fetchRepoContentsZip(repo: string, githubToken?: string) {
128128 const releaseResponse = await fetch ( `${ baseUrl } /repos/${ repo } /releases/latest` , {
129129 headers : {
130130 Accept : 'application/vnd.github.v3+json' ,
131- 'User-Agent' : 'bolt.diy -app' ,
131+ 'User-Agent' : 'codinit.dev -app' ,
132132 ...( githubToken ? { Authorization : `Bearer ${ githubToken } ` } : { } ) ,
133133 } ,
134134 } ) ;
0 commit comments