From cce04acd01c062ffe89c874fb17aeaea30a6ed8c Mon Sep 17 00:00:00 2001 From: HyunSu1768 Date: Thu, 1 Aug 2024 00:01:02 +0900 Subject: [PATCH] =?UTF-8?q?fix=20::=20status=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adapter/dto/response/GetContainerDeployHistoryResponse.kt | 2 +- .../application/service/GetContainerDeployHistoryService.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/xquare/app/xquareinfra/domain/container/adapter/dto/response/GetContainerDeployHistoryResponse.kt b/src/main/kotlin/xquare/app/xquareinfra/domain/container/adapter/dto/response/GetContainerDeployHistoryResponse.kt index 330cc0e..fbb37c3 100644 --- a/src/main/kotlin/xquare/app/xquareinfra/domain/container/adapter/dto/response/GetContainerDeployHistoryResponse.kt +++ b/src/main/kotlin/xquare/app/xquareinfra/domain/container/adapter/dto/response/GetContainerDeployHistoryResponse.kt @@ -13,5 +13,5 @@ data class DeployHistoryResponse( data class StageStatus( val name: String, - val isSuccessful: Boolean + val status: String ) \ No newline at end of file diff --git a/src/main/kotlin/xquare/app/xquareinfra/domain/container/application/service/GetContainerDeployHistoryService.kt b/src/main/kotlin/xquare/app/xquareinfra/domain/container/application/service/GetContainerDeployHistoryService.kt index b8418f8..846508e 100644 --- a/src/main/kotlin/xquare/app/xquareinfra/domain/container/application/service/GetContainerDeployHistoryService.kt +++ b/src/main/kotlin/xquare/app/xquareinfra/domain/container/application/service/GetContainerDeployHistoryService.kt @@ -32,7 +32,7 @@ class GetContainerDeployHistoryService( stages = it.stages.map { StageStatus( name = it.name, - isSuccessful = it.status == "Passed" + status = it.status ) }.toList(), commitMessage = it.buildCause.materialRevisions[0].modifications.get(0).comment