AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Implemented remaining git operations

Open aishwd94 opened this issue 2 years ago • 4 comments

Background

Currently, the remaining git commands are not implemented in git_operations.py, due to which, Auto-GPT tries to write a Python script to run those commands. This is less efficient and could be optimized in a straightforward way by implementing and hardcoding the remaining git commands - this would eventually help in solving https://github.com/Significant-Gravitas/Auto-GPT/issues/15 . These functions are generated by chatGPT itself.

Changes

Added the following git operations: add, commit, push, pull, init

Documentation

NA

Test Plan

Not tested

PR Quality Checklist

  • [x] My pull request is atomic and focuses on a single change.
  • [ ] I have thoroughly tested my changes with multiple different prompts.
  • [x] I have considered potential risks and mitigations for my changes.
  • [x] I have documented my changes clearly and comprehensively.
  • [x] I have not snuck in any "extra" small tweaks changes

aishwd94 avatar May 05 '23 02:05 aishwd94

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) May 5, 2023 2:39am

vercel[bot] avatar May 05 '23 02:05 vercel[bot]

as mentioned in some other issues, coding this up with the hard-coded assumption of using github credentials may have worked initially - but it's obvious that more and more folks are using this with repos beyond just those hosted on github. Thus, I would suggest to provide an option to also configure these defaults - possibly including the user/email fields, but at least the credentials to login for pulling/pushing respectively.

For the time being, the agent will typically invoke the CLI for me, because the command interface is too limited.

Boostrix avatar May 05 '23 09:05 Boostrix

Added to discussion #3856

anonhostpi avatar May 05 '23 18:05 anonhostpi

Please consider updating this PR according to the feedback so that it can be considered for the upcoming release.

Boostrix avatar May 16 '23 13:05 Boostrix

Closing this for lack of activity. Please let us know if you still want to get this in. :)

Pwuts avatar Jul 17 '23 16:07 Pwuts