Skip to content

Commit

Permalink
fix :: name email 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunSu1768 committed Aug 1, 2024
1 parent 6522393 commit 2016b25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ data class GetContainerDeployHistoryResponse(

data class DeployHistoryResponse(
val name: String,
val email: String,
val scheduledDate: Long,
val commitMessage: String,
val stages: List<StageStatus>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ class GetContainerDeployHistoryService(
val histories = gocdClient.getPipelinesHistory("build-${deploy.deployName}-${containerEnvironment.name}", "application/vnd.go.cd.v1+json")

val response = histories.pipelines.map {
val splitedNameAndEmail = it.buildCause.materialRevisions[0].modifications.get(0).userName.split(" ")
DeployHistoryResponse(
name = it.buildCause.materialRevisions[0].modifications.get(0).userName,
name = splitedNameAndEmail.get(0),
email = splitedNameAndEmail.get(1),
scheduledDate = it.scheduledDate,
stages = it.stages.map {
StageStatus(
Expand Down

0 comments on commit 2016b25

Please sign in to comment.