Back to GitHub
Connect Knoon AI with GitHub to automate AI workflows.
Get repository file or directory content by path.
githubDefaultGetRepositoryContent
BETA
Internal
Permissions
Optional permissions
There are no items to display.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| repository | file | GitHub repository in owner/repo format. | Yes |
| path | mustache | Optional file or directory path. Empty means repository root. | No |
| ref | mustache | Optional branch, tag, or commit SHA. | No |
| includeContent | boolean | Optional. If true and path is a file, include content. | No |
Returns
| Name | Type | Description |
|---|---|---|
| result | object | Repository content summary. |