pullpal

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IssueNotFound = errors.New("no issue found")

IssueNotFound is returned when no issue can be found to generate a prompt for.

Functions

This section is empty.

Types

type Config

type Config struct {
	WaitDuration     time.Duration
	LocalRepoPath    string
	Repos            []string
	Self             vc.Author
	ListIssueOptions vc.ListIssueOptions
	Model            string
	OpenAIToken      string
	DebugDir         string
}

type PullPal

type PullPal struct {
	// contains filtered or unexported fields
}

PullPal is the service responsible for:

  • Interacting with git server (e.g. reading issues and making PRs on Github)
  • Generating LLM prompts
  • Parsing LLM responses
  • Interacting with LLM (e.g. with GPT via OpenAI API)

func NewPullPal

func NewPullPal(ctx context.Context, log *zap.Logger, cfg Config) (*PullPal, error)

NewPullPal creates a new "pull pal service", including setting up local version control and LLM integrations.

func (*PullPal) DebugGit

func (p *PullPal) DebugGit() error

func (*PullPal) DebugGithub

func (p *PullPal) DebugGithub(handles []string) error

todo dont require args for listing comments

func (*PullPal) DebugLLM

func (p *PullPal) DebugLLM() error

func (*PullPal) Run

func (p *PullPal) Run() error

Run starts pull pal as a fully automated service that periodically requests changes and creates pull requests based on them.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL