瀏覽代碼

Merge pull request #2186 from porter-dev/nafees/hotfixes

[hotfix] Set deployment status correctly from the GH API
abelanger5 3 年之前
父節點
當前提交
32f9d4050e
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      api/server/handlers/environment/list_deployments_by_cluster.go

+ 2 - 0
api/server/handlers/environment/list_deployments_by_cluster.go

@@ -221,6 +221,8 @@ func updateDeploymentWithGithubWorkflowRunStatus(
 				deployment.Status = types.DeploymentStatusFailed
 			} else if latestWorkflowRun.GetConclusion() == "timed_out" {
 				deployment.Status = types.DeploymentStatusTimedOut
+			} else if latestWorkflowRun.GetConclusion() == "success" {
+				deployment.Status = types.DeploymentStatusCreated
 			}
 		}
 	}