@@ -15,7 +15,6 @@ const githubContext = vi.hoisted(() => ({
1515 owner : "changesets" ,
1616 repo : "action" ,
1717 } ,
18- serverUrl : "http://127.0.0.1" ,
1918 sha : "base-sha" ,
2019} ) ) ;
2120
@@ -74,7 +73,6 @@ describe("GitHub", () => {
7473 const repository = repositoryFixture . path ;
7574
7675 const serverUrl = new URL ( remote . url ) . origin ;
77- githubContext . serverUrl = serverUrl ;
7876 await git ( repository , [ "remote" , "set-url" , "origin" , remote . url ] ) ;
7977 await git ( repository , [
8078 "config" ,
@@ -87,6 +85,7 @@ describe("GitHub", () => {
8785 cwd : repository ,
8886 githubToken : actionToken ,
8987 pushWithGitCli : true ,
88+ serverUrl,
9089 } ) ;
9190
9291 await github . pushChanges ( {
@@ -122,7 +121,6 @@ describe("GitHub", () => {
122121 const repository = repositoryFixture . path ;
123122
124123 const remoteUrl = new URL ( remote . url ) ;
125- githubContext . serverUrl = remoteUrl . origin ;
126124 remoteUrl . username = "x-access-token" ;
127125 remoteUrl . password = "checkout-token" ;
128126 await git ( repository , [ "remote" , "set-url" , "origin" , remoteUrl . href ] ) ;
@@ -139,6 +137,7 @@ describe("GitHub", () => {
139137 cwd : repository ,
140138 githubToken : actionToken ,
141139 pushWithGitCli : true ,
140+ serverUrl : remoteUrl . origin ,
142141 } ) ;
143142
144143 await github . pushChanges ( {
0 commit comments