Skip to content

Commit 3f3006d

Browse files
author
Sébastien HOUZÉ
committed
fix: don't update deployment status env when empty
1 parent 5191a21 commit 3f3006d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmd/deployment_status.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ var deploymentStatusCreateCmd = &cobra.Command{
125125
if err != nil {
126126
log.Fatal(err)
127127
}
128+
if len(*deploymentStatusRequest.Environment) == 0 {
129+
deploymentStatusRequest.Environment = nil
130+
}
128131

129132
deploymentStatus, _, err := client.Repositories.CreateDeploymentStatus(ctx, owner, repository, deploymentID, &deploymentStatusRequest)
130133
if err != nil {

0 commit comments

Comments
 (0)