You interact with the GitHub Tool by specifying requirements within your goal. The tool operates on the main branch by default unless a specific branch is mentioned.
Supported Operations
Add Files or Folders
To add content, include the following in your goal:
- The target repository name.
- The owner's UserName.
- The path where the file/folder should be added.
Note: SuperAGI will upload the content and automatically raise a Pull Request (PR).
Delete Files
To remove content, include the following in your goal:
- The target repository name.
- The owner's UserName.
- The path to the file you want to delete.
Note: SuperAGI will handle the deletion and automatically raise a Pull Request (PR).
Search for Files or Folders
To find content, include the following in your goal:
- The target repository name.
- The owner's UserName.
- The name or path of the file/folder you are looking for.
Branch Specification
If you need to perform any of these operations on a branch other than main, you must explicitly mention the desired branch name in your goal.