Documentation
¶
Overview ¶
Package review implements automated PR review polling and fix prompt generation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FixPromptGenerator ¶
type FixPromptGenerator interface {
Generate(ctx context.Context, opts GenerateOpts) error
}
FixPromptGenerator generates a fix prompt file in the inbox directory when a PR receives a request-changes review.
func NewFixPromptGenerator ¶
func NewFixPromptGenerator() FixPromptGenerator
NewFixPromptGenerator creates a new FixPromptGenerator.
type GenerateOpts ¶
type GenerateOpts struct {
InboxDir string
OriginalPromptName string // filename without path, used to derive fix prompt name
Branch string
PRURL string
RetryCount int
ReviewBody string
}
GenerateOpts holds the options for generating a fix prompt.
type ReviewPoller ¶ added in v0.17.37
ReviewPoller watches all in_review prompts, fetches GitHub review state, generates fix prompts on request-changes, and triggers merge on approval.
func NewReviewPoller ¶ added in v0.17.37
func NewReviewPoller( queueDir string, inboxDir string, allowedReviewers []string, maxRetries int, pollInterval time.Duration, fetcher git.ReviewFetcher, prMerger git.PRMerger, promptManager prompt.Manager, generator FixPromptGenerator, ) ReviewPoller
NewReviewPoller creates a new ReviewPoller.
Click to show internal directories.
Click to hide internal directories.