Skip to content

chore: add branch and files support #547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cloudnautique
Copy link
Contributor

Added the ability to create and list branches to the tools.
Added the ability to list files and directories.
Added the ability to change files/create update files.
Added ability to delete files.

@cloudnautique cloudnautique marked this pull request as draft April 1, 2025 22:47
@cloudnautique
Copy link
Contributor Author

To test this out before merging:

  1. Clone cloudnautique/tools repo, and checkout the github_file_and_branches branch.
  2. Run a docker container: `docker run -d -p 8080:8080 -v $(pwd)/tools:/custom-tools ghcr.io/obot-platform/obot:main
  3. Build the tools.
    a. On Linux
    - cd tools/ && make
    b. on Mac/Win
    - docker exec -it <server> bash
    - apk add --update go && cd /custom-tools && ./scripts/build.sh
  4. open localhost:8080 in the browser, configure model provider.
  5. Install obot cli on host
  6. obot agents
  7. obot edit <obot agent id>
  8. Under the tools section of the Yaml, add - /custom-tools/github
  9. Then chat with the obot, do list my repos it will prompt you for the a PAT.

You can then try out creating branches, modifying files, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant