Compare commits

...

1 Commits

Author SHA1 Message Date
mudler
7d1e9647d9 chore: return more results to the LLM of the action that was done
Signed-off-by: mudler <mudler@localai.io>
2025-04-14 19:55:00 +02:00

View File

@@ -128,11 +128,13 @@ func (g *GithubPRReviewer) Run(ctx context.Context, params types.ActionParams) (
} }
actionResult := fmt.Sprintf( actionResult := fmt.Sprintf(
"Pull request https://github.com/%s/%s/pull/%d reviewed successfully with status: %s", "Pull request https://github.com/%s/%s/pull/%d reviewed successfully with status: %s, comments: %v, message: %s",
result.Owner, result.Owner,
result.Repository, result.Repository,
result.PRNumber, result.PRNumber,
strings.ToLower(result.ReviewAction), strings.ToLower(result.ReviewAction),
result.Comments,
result.ReviewComment,
) )
return types.ActionResult{Result: actionResult}, nil return types.ActionResult{Result: actionResult}, nil