You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Only set PipelineID if uniquePipelineIds is not empty
455
+
iflen(uniquePipelineIds) >0 {
456
+
457
+
// Ensure that all commit statuses has identical pipeline ID
458
+
iflen(uniquePipelineIds) >1 {
459
+
// Create a slice to hold all the unique pipelineIds
460
+
varpipelineIds []int
461
+
462
+
// Loop through the map and collect the pipelineIds
463
+
forpipelineId:=rangeuniquePipelineIds {
464
+
pipelineIds=append(pipelineIds, pipelineId)
465
+
}
466
+
467
+
logger.Warn("Commit %s has statuses with more than one PipelineID (id=%s) for ref %s. Set PipelineID from the last commit status: %s", pull.HeadCommit, pipelineIds, pull.HeadBranch, commitStatuses[0].PipelineId)
468
+
} else {
469
+
logger.Info("Exactly one PipelineID found for commit %s and ref %s, setting new status PipelineID to %d", pull.HeadCommit, pull.HeadBranch, commitStatuses[0].PipelineId)
470
+
}
471
+
472
+
// Set the pipeline ID to the last pipeline that ran for the commit
0 commit comments