File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const createTravisEnvVar = async ({
3030 branch ?: string
3131 travisClient : TravisClient
3232} ) : Promise < void > => {
33- await travisClient . post ( `/ repo/sourcegraph%2F${ repoName } /env_vars` , {
33+ await travisClient . post ( `repo/github /sourcegraph%2F${ repoName } /env_vars` , {
3434 json : {
3535 'env_var.name' : name ,
3636 'env_var.value' : value ,
@@ -129,16 +129,17 @@ export async function initTravis({
129129 try {
130130 await delay ( 1000 )
131131 console . log ( `Activating repository at https://travis-ci.org/sourcegraph/${ repoName } ` )
132- await travisClient . post ( `/ repo/sourcegraph%2F${ repoName } /activate` )
132+ await travisClient . post ( `repo/github /sourcegraph%2F${ repoName } /activate` )
133133 break
134134 } catch ( err ) {
135+ console . log ( err . response )
135136 if ( ! ( err instanceof HTTPError ) || err . response . statusCode !== 404 ) {
136137 throw err
137138 }
138139 }
139140 }
140141
141- const envVars = await travisClient . get < TravisEnvVarsResult > ( `/ repo/sourcegraph%2F${ repoName } /env_vars` , {
142+ const envVars = await travisClient . get < TravisEnvVarsResult > ( `repo/github /sourcegraph%2F${ repoName } /env_vars` , {
142143 responseType : 'json' ,
143144 resolveBodyOnly : true ,
144145 } )
You can’t perform that action at this time.
0 commit comments