Skip to content

Commit

Permalink
fix: don't update deployment status env when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien HOUZÉ committed Sep 6, 2019
1 parent 5191a21 commit 3f3006d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/deployment_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ var deploymentStatusCreateCmd = &cobra.Command{
if err != nil {
log.Fatal(err)
}
if len(*deploymentStatusRequest.Environment) == 0 {
deploymentStatusRequest.Environment = nil
}

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

0 comments on commit 3f3006d

Please sign in to comment.