Преглед изворни кода

Update api/server/handlers/environment/list_deployments_by_cluster.go

abelanger5 пре 4 година
родитељ
комит
0f65091da8
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      api/server/handlers/environment/list_deployments_by_cluster.go

+ 1 - 1
api/server/handlers/environment/list_deployments_by_cluster.go

@@ -195,7 +195,7 @@ func fetchOpenPullRequests(
 
 
 	var ghPRs []*github.PullRequest
 	var ghPRs []*github.PullRequest
 
 
-	for resp.NextPage != 0 && err != nil {
+	for resp.NextPage != 0 && err == nil {
 		ghPRs, resp, err = client.PullRequests.List(ctx, env.GitRepoOwner, env.GitRepoName,
 		ghPRs, resp, err = client.PullRequests.List(ctx, env.GitRepoOwner, env.GitRepoName,
 			&github.PullRequestListOptions{
 			&github.PullRequestListOptions{
 				ListOptions: github.ListOptions{
 				ListOptions: github.ListOptions{