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 fb0922e commit d37f2fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions metrics_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ 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) {
minTime := time.Now().Add(-opts.Limit.BuildHistoryDuration)
minTime := time.Now().Add(-Opts.Limit.BuildHistoryDuration)

statusFilter := "completed"
if arrayStringContains(opts.AzureDevops.FetchAllBuildsFilter, project.Name) || arrayStringContains(opts.AzureDevops.FetchAllBuildsFilter, project.Id) {
if arrayStringContains(Opts.AzureDevops.FetchAllBuildsFilter, project.Name) || arrayStringContains(opts.AzureDevops.FetchAllBuildsFilter, project.Id) {

Check failure on line 309 in metrics_build.go

View workflow job for this annotation

GitHub Actions / release / lint

undefined: opts
logger.Info("fetching all builds for project " + project.Name)
statusFilter = "all"
}
Expand All @@ -327,7 +327,7 @@ func (m *MetricsCollectorBuild) collectBuildsTimeline(ctx context.Context, logge
timelineRecordList, _ := AzureDevopsClient.ListBuildTimeline(project.Id, int64ToString(build.Id))
for _, timelineRecord := range timelineRecordList.List {

if opts.AzureDevops.FilterTimelineState != nil && !arrayStringContains(opts.AzureDevops.FilterTimelineState, timelineRecord.State) {
if Opts.AzureDevops.FilterTimelineState != nil && !arrayStringContains(Opts.AzureDevops.FilterTimelineState, timelineRecord.State) {
continue
}

Expand Down Expand Up @@ -652,10 +652,10 @@ func (m *MetricsCollectorBuild) collectBuildsTimeline(ctx context.Context, logge
}

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

statusFilter := "completed"
if arrayStringContains(opts.AzureDevops.FetchAllBuildsFilter, project.Name) || arrayStringContains(opts.AzureDevops.FetchAllBuildsFilter, project.Id) {
if arrayStringContains(Opts.AzureDevops.FetchAllBuildsFilter, project.Name) || arrayStringContains(opts.AzureDevops.FetchAllBuildsFilter, project.Id) {

Check failure on line 658 in metrics_build.go

View workflow job for this annotation

GitHub Actions / release / lint

undefined: opts (typecheck)
logger.Info("fetching all builds for project " + project.Name)
statusFilter = "all"
}
Expand Down

0 comments on commit d37f2fe

Please sign in to comment.