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
This commit is contained in:
Moby von Briesen
2023-04-22 21:41:28 -04:00
parent 6b1e6f267f
commit b9b0b9cf12
11 changed files with 653 additions and 47 deletions

View File

@@ -28,7 +28,7 @@ type PullPal struct {
func NewPullPal(ctx context.Context, log *zap.Logger, self vc.Author, repo vc.Repository) (*PullPal, error) {
ghClient, err := vc.NewGithubClient(ctx, log, self, repo)
if err != nil {
log.Error("Failed to setup Github client.", zap.Error(err))
return nil, err
}
return &PullPal{