Documentation
¶
Overview ¶
Package reviewfix spawns a Smith worker to address PR review comments.
When Bellows detects "changes requested" on a PR, reviewfix fetches the review comments via gh, constructs a targeted fix prompt, and spawns Smith to address them. It then pushes the fixes to the PR branch.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FixParams ¶
type FixParams struct {
// WorktreePath is the git worktree for this PR's branch.
WorktreePath string
// BeadID for tracking.
BeadID string
// AnvilName for tracking.
AnvilName string
// AnvilPath is the repo root.
AnvilPath string
// PRNumber being fixed.
PRNumber int
// Branch name for the PR.
Branch string
// DB for state tracking.
DB *state.DB
// WorkerID is the state DB worker ID, used to update the log path
// so the Hearth TUI can display live activity.
WorkerID string
// MaxAttempts is the maximum fix attempts for review comments.
MaxAttempts int
// ExtraFlags for Claude CLI.
ExtraFlags []string
// Providers is the ordered list of AI providers to try.
// If empty, provider.Defaults() is used (Claude → Gemini).
Providers []provider.Provider
}
FixParams holds the inputs for a review fix attempt.
type FixResult ¶
type FixResult struct {
// Addressed is true if Smith successfully pushed review fixes.
Addressed bool
// Attempts is how many fix cycles were tried.
Attempts int
// CommentsFound is how many review comments were fetched.
CommentsFound int
// Duration is the total time spent.
Duration time.Duration
// Error if the fix process itself failed.
Error error
}
FixResult captures the outcome of addressing review comments.
Click to show internal directories.
Click to hide internal directories.