code

package
v0.0.0-...-db08c54 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGit

func NewGit(cond GitCond) *implGit

Types

type CodePatch

type CodePatch struct {
	Filepaths  []string
	Content    string
	MatchRules llm.PromptConfig
}

type GitCond

type GitCond struct {
	Pkgs            []string
	ReviewBranch    string
	CompareBranch   string
	MaxToken        int
	Knowledge       config.Knowledge
	FilepathFilters []regexp.Regexp
}

type ICode

type ICode interface {
	GetCode(ctx context.Context) ([]CodePatch, error)
}

Jump to

Keyboard shortcuts

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