Skip to content

Commit

Permalink
add a header for summary comment (#1865)
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes authored Dec 30, 2024
1 parent 9599562 commit d19d04d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/controllers/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ func CreateTerraformOutputsSummary(gh utils.GithubClientProvider, batch *models.
return fmt.Errorf("could not get jobs for batch: %v", err)
}

var terraformOutputs = "## AI Summary for terraform runs\n\n"
var terraformOutputs = ""
for _, job := range jobs {
var jobSpec orchestrator_scheduler.JobJson
err := json.Unmarshal(job.SerializedJobSpec, &jobSpec)
Expand All @@ -710,6 +710,7 @@ func CreateTerraformOutputsSummary(gh utils.GithubClientProvider, batch *models.
return fmt.Errorf("could not summarise terraform outputs: %v", err)
}

summary = "## AI summary for terraform plans \n\n" + summary
prService.EditComment(batch.PrNumber, batch.AiSummaryCommentId, summary)
}
return nil
Expand Down

0 comments on commit d19d04d

Please sign in to comment.