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

should be head and not base

Mohammed Nafees пре 3 година
родитељ
комит
2813a7a68d
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

@@ -276,7 +276,7 @@ func fetchOpenPullRequests(
 
 	for _, pr := range openPRs {
 		if len(branchesMap) > 0 {
-			if _, ok := branchesMap[pr.GetHead().GetRef()]; !ok {
+			if _, ok := branchesMap[pr.GetBase().GetRef()]; !ok {
 				continue
 			}
 		}