Need to fill more options to commit to github (#42)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
committed by
GitHub
parent
efc82bde30
commit
9347193fdc
@@ -60,7 +60,10 @@ func (g *GithubRepositoryGetContent) Run(ctx context.Context, params action.Acti
|
||||
return action.ActionResult{Result: resultString}, err
|
||||
}
|
||||
|
||||
content := fileContent.Content
|
||||
var content string
|
||||
if fileContent.Content != nil {
|
||||
content = *fileContent.Content
|
||||
}
|
||||
|
||||
return action.ActionResult{Result: fmt.Sprintf("File %s\nContent:%s\n", result.Path, content)}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user