Skip to content

chore: add branch and files support#547

Merged
cjellick merged 1 commit intoobot-platform:mainfrom
cloudnautique:github_file_and_branches
May 13, 2025
Merged

chore: add branch and files support#547
cjellick merged 1 commit intoobot-platform:mainfrom
cloudnautique:github_file_and_branches

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.

@cloudnautique cloudnautique marked this pull request as ready for review May 13, 2025 23:32
@cjellick cjellick merged commit f5d533a into obot-platform:main May 13, 2025
1 check passed
@cjellick cjellick added this to Obot AI May 13, 2025
@cjellick cjellick moved this to Testing in Obot AI May 13, 2025
@sangee2004 sangee2004 self-assigned this May 14, 2025
@sangee2004
Copy link

When testing with latest version of github tool , we have the ability to do the following:

  1. Create and list branches to the tools.
  2. List files and directories.
  3. Add new files and update existing files.
  4. Delete existing files.

@sangee2004 sangee2004 moved this from Testing to Done in Obot AI May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants