chore: return more results to the LLM of the action that was done (#38)

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto
2025-04-14 22:03:53 +02:00
committed by GitHub
parent 77189b6114
commit 97ef7acec0

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