Skip to content

Commit 44c1aff

Browse files
committed
switch to lazy reporter
1 parent 6df110b commit 44c1aff

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

backend/controllers/github.go

+1
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ func handlePullRequestEvent(gh utils.GithubClientProvider, payload *github.PullR
419419
return fmt.Errorf("error processing event")
420420
}
421421
}
422+
422423
diggerCommand, err := orchestrator_scheduler.GetCommandFromJob(jobsForImpactedProjects[0])
423424
if err != nil {
424425
log.Printf("could not determine digger command from job: %v", jobsForImpactedProjects[0].Commands)

backend/services/spec.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,8 @@ func GetSpecFromJob(job models.DiggerJob) (*spec.Spec, error) {
116116
CommentId: strconv.FormatInt(*batch.CommentId, 10),
117117
Job: jobSpec,
118118
Reporter: spec.ReporterSpec{
119-
//ReportingStrategy: "comments_per_run",
120-
ReportingStrategy: "always_same_comment",
121-
ReporterType: "lazy",
119+
ReportingStrategy: "comments_per_run",
120+
ReporterType: "basic",
122121
ReportCommentId: job.Batch.PlaceholderCommentIdForReport,
123122
},
124123
Lock: spec.LockSpec{

libs/spec/providers.go

-9
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,6 @@ func (r ReporterProvider) GetReporter(title string, reporterSpec ReporterSpec, c
133133
IsSupportMarkdown: true,
134134
ReportStrategy: strategy,
135135
}, nil
136-
case "lazy":
137-
strategy := getStrategy(reporterSpec.ReportingStrategy)
138-
ciReporter := reporting.CiReporter{
139-
CiService: ciService,
140-
PrNumber: prNumber,
141-
IsSupportMarkdown: true,
142-
ReportStrategy: strategy,
143-
}
144-
return ciReporter, nil
145136
default:
146137
return reporting.NoopReporter{}, nil
147138
}

0 commit comments

Comments
 (0)