Commit Graph

4 Commits

Author SHA1 Message Date
Moby von Briesen
b9b0b9cf12 It's working
Implement cobra and stuff
Right now there is just one root command
You can set a config file, or pass flags in via CLI
Haven't figured out how to use env variables yet
But if you run the root command,
It'll check the repo for issues, and generate an LLM prompt
You can copy-paste it to the LLM chat, then copy-paste the response to a
different file
Then press enter in the CLI tool, and it will parse the response and
open a PR with the change
2023-04-22 21:41:28 -04:00
Moby von Briesen
c9cf1b5e49 implement high-level functionality
integrate the llm and versioncontrol packages in the pullpal package
* Functionality to select a Github issue, and generate an LLM prompt
  from it (PickIssue)
* Functionality to parse LLM response (from string or file), update
  local git repository, and create pull request (ProcessResponse and
  ProcessResponseFromFile)
2023-04-22 17:50:57 -04:00
Moby von Briesen
3aa79401d0 Implement "local repo" functionality in github client
* Retrieving the current state (i.e. contents) of file at path in local
  repo
* Starting a commit
* Updating the contents (or creating) file at path in local repo and
  updating the "started" commit
* Finishing a commit
* Pushing commit to new remote branch (as part of creating a PR)
* Removing local repository on "shutdown"
2023-04-22 16:59:59 -04:00
Moby von Briesen
6c42bbd7b8 Implement Github client
Added "version control client" interface and created a Github
implementation of it. Right now it only creates pull requests and lists
issues.

Restructued some code. Idk if it will be permanent.

Next I plan to add behavior around replacing files in the local repo,
and creating commits.
2023-04-22 16:23:56 -04:00