From 97ef7acec0fbf287d1c285e56c22fcae46c15bb5 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 14 Apr 2025 22:03:53 +0200 Subject: [PATCH] chore: return more results to the LLM of the action that was done (#38) Signed-off-by: mudler --- services/actions/githubprreviewer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/actions/githubprreviewer.go b/services/actions/githubprreviewer.go index 5959e1b..8ad2d94 100644 --- a/services/actions/githubprreviewer.go +++ b/services/actions/githubprreviewer.go @@ -128,11 +128,13 @@ func (g *GithubPRReviewer) Run(ctx context.Context, params types.ActionParams) ( } 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.Repository, result.PRNumber, strings.ToLower(result.ReviewAction), + result.Comments, + result.ReviewComment, ) return types.ActionResult{Result: actionResult}, nil