File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
apps/webapp/app/presenters/v3 Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 11import {
2+ BuildServerMetadata ,
23 DeploymentErrorData ,
34 ExternalBuildData ,
45 prepareDeploymentError ,
@@ -154,17 +155,23 @@ export class DeploymentPresenter {
154155 avatarUrl : true ,
155156 } ,
156157 } ,
158+ buildServerMetadata : true ,
157159 } ,
158160 } ) ;
159161
160162 const gitMetadata = processGitMetadata ( deployment . git ) ;
161-
162163 const externalBuildData = deployment . externalBuildData
163164 ? ExternalBuildData . safeParse ( deployment . externalBuildData )
164165 : undefined ;
166+ const buildServerMetadata = deployment . buildServerMetadata
167+ ? BuildServerMetadata . safeParse ( deployment . buildServerMetadata )
168+ : undefined ;
165169
166170 let eventStream = undefined ;
167- if ( env . S2_ENABLED === "1" && gitMetadata ?. source === "trigger_github_app" ) {
171+ if (
172+ env . S2_ENABLED === "1" &&
173+ ( buildServerMetadata || gitMetadata ?. source === "trigger_github_app" )
174+ ) {
168175 const [ error , accessToken ] = await tryCatch ( this . getS2AccessToken ( project . externalRef ) ) ;
169176
170177 if ( error ) {
You can’t perform that action at this time.
0 commit comments