mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-09 17:28:58 +00:00
feat: update output note
This commit is contained in:
parent
1319f3a013
commit
dd12b72abf
2 changed files with 4 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ import (
|
|||
|
||||
func outputText(comments []model.LlmComment) {
|
||||
if len(comments) == 0 {
|
||||
fmt.Println("No comments generated.")
|
||||
fmt.Println("No comments generated. Looks good to me.")
|
||||
return
|
||||
}
|
||||
for _, c := range comments {
|
||||
|
|
@ -155,7 +155,7 @@ func outputJSON(comments []model.LlmComment) error {
|
|||
Comments: comments,
|
||||
}
|
||||
if len(comments) == 0 {
|
||||
out.Message = "No comments generated."
|
||||
out.Message = "No comments generated. Looks good to me."
|
||||
}
|
||||
enc := json.NewEncoder(os.Stdout)
|
||||
enc.SetIndent("", " ")
|
||||
|
|
@ -168,7 +168,7 @@ func outputJSONWithWarnings(comments []model.LlmComment, warnings []agent.AgentW
|
|||
Comments: comments,
|
||||
}
|
||||
if len(comments) == 0 {
|
||||
out.Message = "No comments generated."
|
||||
out.Message = "No comments generated. Looks good to me."
|
||||
}
|
||||
if len(warnings) > 0 {
|
||||
out.Warnings = warnings
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ func runReview(args []string) error {
|
|||
}
|
||||
if opts.audience == "agent" {
|
||||
if len(comments) == 0 {
|
||||
fmt.Println("No comments generated.")
|
||||
fmt.Println("No comments generated. Looks good to me.")
|
||||
} else {
|
||||
fmt.Printf("%d comment(s) generated.\n", len(comments))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue