We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2e4f9 commit 26e1b7aCopy full SHA for 26e1b7a
pkg/github/repositories.go
@@ -670,10 +670,13 @@ func GetFileContents(t translations.TranslationHelperFunc) inventory.ServerTool
670
if err != nil {
671
return utils.NewToolResultError(err.Error()), nil, nil
672
}
673
- path, err := RequiredParam[string](args, "path")
+
674
+ path, err := OptionalParam[string](args, "path")
675
676
677
678
+ path = strings.TrimPrefix(path, "/")
679
680
ref, err := OptionalParam[string](args, "ref")
681
682
0 commit comments