diff --git a/backend/controllers/github.go b/backend/controllers/github.go index ad425013..6ec12a58 100644 --- a/backend/controllers/github.go +++ b/backend/controllers/github.go @@ -419,6 +419,7 @@ func handlePullRequestEvent(gh utils.GithubClientProvider, payload *github.PullR return fmt.Errorf("error processing event") } } + diggerCommand, err := orchestrator_scheduler.GetCommandFromJob(jobsForImpactedProjects[0]) if err != nil { log.Printf("could not determine digger command from job: %v", jobsForImpactedProjects[0].Commands) diff --git a/backend/services/spec.go b/backend/services/spec.go index 8152f6f4..1469d74b 100644 --- a/backend/services/spec.go +++ b/backend/services/spec.go @@ -116,9 +116,8 @@ func GetSpecFromJob(job models.DiggerJob) (*spec.Spec, error) { CommentId: strconv.FormatInt(*batch.CommentId, 10), Job: jobSpec, Reporter: spec.ReporterSpec{ - //ReportingStrategy: "comments_per_run", - ReportingStrategy: "always_same_comment", - ReporterType: "lazy", + ReportingStrategy: "comments_per_run", + ReporterType: "basic", ReportCommentId: job.Batch.PlaceholderCommentIdForReport, }, Lock: spec.LockSpec{ diff --git a/libs/spec/providers.go b/libs/spec/providers.go index 236eb87f..fd8f807e 100644 --- a/libs/spec/providers.go +++ b/libs/spec/providers.go @@ -133,15 +133,6 @@ func (r ReporterProvider) GetReporter(title string, reporterSpec ReporterSpec, c IsSupportMarkdown: true, ReportStrategy: strategy, }, nil - case "lazy": - strategy := getStrategy(reporterSpec.ReportingStrategy) - ciReporter := reporting.CiReporter{ - CiService: ciService, - PrNumber: prNumber, - IsSupportMarkdown: true, - ReportStrategy: strategy, - } - return ciReporter, nil default: return reporting.NoopReporter{}, nil }