Skip to content

Commit

Permalink
fix merge issues
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Sep 14, 2024
1 parent c611c23 commit fb0922e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions metrics_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ func (m *MetricsCollectorBuild) collectBuilds(ctx context.Context, logger *zap.S
}

func (m *MetricsCollectorBuild) collectBuildsTimeline(ctx context.Context, logger *zap.SugaredLogger, callback chan<- func(), project devopsClient.Project) {
<<<<<<< main
minTime := time.Now().Add(-opts.Limit.BuildHistoryDuration)

Check failure on line 306 in metrics_build.go

View workflow job for this annotation

GitHub Actions / release / lint

undefined: opts

statusFilter := "completed"
Expand All @@ -313,10 +312,6 @@ func (m *MetricsCollectorBuild) collectBuildsTimeline(ctx context.Context, logge
}

list, err := AzureDevopsClient.ListBuildHistoryWithStatus(project.Id, minTime, statusFilter)
=======
minTime := time.Now().Add(-Opts.Limit.BuildHistoryDuration)
list, err := AzureDevopsClient.ListBuildHistoryWithStatus(project.Id, minTime, "completed")
>>>>>>> main
if err != nil {
logger.Error(err)
return
Expand Down Expand Up @@ -657,7 +652,6 @@ func (m *MetricsCollectorBuild) collectBuildsTimeline(ctx context.Context, logge
}

func (m *MetricsCollectorBuild) collectBuildsTags(ctx context.Context, logger *zap.SugaredLogger, callback chan<- func(), project devopsClient.Project) {
<<<<<<< main
minTime := time.Now().Add(-opts.Limit.BuildHistoryDuration)

Check failure on line 655 in metrics_build.go

View workflow job for this annotation

GitHub Actions / release / lint

undefined: opts

statusFilter := "completed"
Expand All @@ -667,10 +661,6 @@ func (m *MetricsCollectorBuild) collectBuildsTags(ctx context.Context, logger *z
}

list, err := AzureDevopsClient.ListBuildHistoryWithStatus(project.Id, minTime, statusFilter)
=======
minTime := time.Now().Add(-Opts.Limit.BuildHistoryDuration)
list, err := AzureDevopsClient.ListBuildHistoryWithStatus(project.Id, minTime, "completed")
>>>>>>> main
if err != nil {
logger.Error(err)
return
Expand Down

0 comments on commit fb0922e

Please sign in to comment.