mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-10 09:49:05 +00:00
feat: update --audience agent
This commit is contained in:
parent
dd12b72abf
commit
8391e1e564
1 changed files with 1 additions and 5 deletions
|
|
@ -157,11 +157,7 @@ func runReview(args []string) error {
|
|||
return outputJSONWithWarnings(comments, ag.Warnings())
|
||||
}
|
||||
if opts.audience == "agent" {
|
||||
if len(comments) == 0 {
|
||||
fmt.Println("No comments generated. Looks good to me.")
|
||||
} else {
|
||||
fmt.Printf("%d comment(s) generated.\n", len(comments))
|
||||
}
|
||||
outputTextWithWarnings(comments, ag.Warnings())
|
||||
return nil
|
||||
}
|
||||
outputTextWithWarnings(comments, ag.Warnings())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue