@@ -113,7 +113,7 @@ export function startBuild(data: any): Promise<any> {
113113 insertBuildRun ( data )
114114 . then ( ( ) => {
115115 if ( repository . access_token ) {
116- const name = data . base_full_name ;
116+ const name = data . data . repository . full_name ;
117117 const gitUrl = `https://api.github.com/repos/${ name } /statuses/${ sha } ` ;
118118 const abstruseUrl = `${ config . url } /build/${ build . id } ` ;
119119 return setGitHubStatusPending ( gitUrl , abstruseUrl , repository . access_token ) ;
@@ -326,8 +326,8 @@ function prepareJob(buildId: number, jobId: number, cmds: any, sshAndVnc = false
326326 . then ( ( ) => getBuild ( buildId ) )
327327 . then ( build => {
328328 if ( build . repository . access_token ) {
329- const sha = build . sha ;
330- const name = build . base_full_name ;
329+ const sha = build . data . after ;
330+ const name = build . data . repository . full_name ;
331331 const gitUrl = `https://api.github.com/repos/${ name } /statuses/${ sha } ` ;
332332 const abstruseUrl = `${ config . url } /build/${ buildId } ` ;
333333 return setGitHubStatusFailure ( gitUrl , abstruseUrl , build . repository . access_token ) ;
@@ -358,8 +358,8 @@ function prepareJob(buildId: number, jobId: number, cmds: any, sshAndVnc = false
358358 . then ( ( ) => getBuild ( buildId ) )
359359 . then ( build => {
360360 if ( build . repository . access_token ) {
361- const sha = build . sha ;
362- const name = build . base_full_name ;
361+ const sha = build . data . after ;
362+ const name = build . data . repository . full_name ;
363363 const gitUrl = `https://api.github.com/repos/${ name } /statuses/${ sha } ` ;
364364 const abstruseUrl = `${ config . url } /build/${ buildId } ` ;
365365 return setGitHubStatusSuccess ( gitUrl , abstruseUrl ,
@@ -424,8 +424,8 @@ export function restartBuild(buildId: number): Promise<any> {
424424 } )
425425 . then ( ( ) => {
426426 if ( accessToken ) {
427- const sha = buildData . sha ;
428- const name = buildData . base_full_name ;
427+ const sha = buildData . data . after ;
428+ const name = buildData . data . repository . full_name ;
429429 const gitUrl = `https://api.github.com/repos/${ name } /statuses/${ sha } ` ;
430430 const abstruseUrl = `${ config . url } /build/${ buildId } ` ;
431431 return setGitHubStatusPending ( gitUrl , abstruseUrl , accessToken ) ;
@@ -447,8 +447,8 @@ export function stopBuild(buildId: number): Promise<any> {
447447 . then ( ( ) => getBuild ( buildId ) )
448448 . then ( buildData => {
449449 if ( buildData . repository . access_token ) {
450- const sha = buildData . sha ;
451- const name = buildData . base_full_name ;
450+ const sha = buildData . data . after ;
451+ const name = buildData . data . repository . full_name ;
452452 const gitUrl = `https://api.github.com/repos/${ name } /statuses/${ sha } ` ;
453453 const abstruseUrl = `${ config . url } /build/${ buildId } ` ;
454454 return setGitHubStatusFailure ( gitUrl , abstruseUrl , buildData . repository . access_token ) ;
@@ -481,8 +481,8 @@ export function restartJob(jobId: number): Promise<void> {
481481 . then ( ( ) => getBuild ( jobData . builds_id ) )
482482 . then ( build => {
483483 if ( build . repository . access_token ) {
484- const sha = build . sha ;
485- const name = build . base_full_name ;
484+ const sha = build . data . after ;
485+ const name = build . data . repository . full_name ;
486486 const gitUrl = `https://api.github.com/repos/${ name } /statuses/${ sha } ` ;
487487 const abstruseUrl = `${ config . url } /build/${ jobData . build_id } ` ;
488488 return setGitHubStatusPending ( gitUrl , abstruseUrl ,
@@ -518,8 +518,8 @@ export function restartJobWithSshAndVnc(jobId: number): Promise<void> {
518518 . then ( ( ) => getBuild ( jobData . builds_id ) )
519519 . then ( build => {
520520 if ( build . repository . access_token ) {
521- const sha = build . sha ;
522- const name = build . base_full_name ;
521+ const sha = build . data . after ;
522+ const name = build . data . repository . full_name ;
523523 const gitUrl = `https://api.github.com/repos/${ name } /statuses/${ sha } ` ;
524524 const abstruseUrl = `${ config . url } /build/${ jobData . build_id } ` ;
525525 return setGitHubStatusPending ( gitUrl , abstruseUrl ,
0 commit comments