Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Logger *slog.Logger
)
Functions ¶
func InitLogger ¶
func InitLogger(debug bool)
Types ¶
type Config ¶
type Config struct {
// GitHub settings
GitHubToken string // Optional for local
GitHubAPIURL string
// LLM settings
LLMAPIKey string `validate:"required"`
LLMModel string
LLMProvider string
LLMBaseURL string
// Review settings
StyleGuideRules string
// CLI/Action context
PRNumber int
Repository string
GitHubEventPath string
// Output settings
UpdatePRTitle bool
UpdatePRBody bool
// Review action settings
AutoApproveThreshold int // Score threshold for auto-approve (default: 90)
BlockOnCritical bool // Request changes when critical issues found (default: true)
// CLI settings
Debug bool
SkipGitHubValidation bool
// Discovery settings
AutoDiscoverPractices bool // Enable auto-discovery of repo practices (default: true)
DiscoveredPractices string // Content discovered from repo practice files
// File-based config
IgnorePatterns []string // Patterns to ignore during review
PathRules map[string]PathRule // Path-specific rules
}
func LoadConfig ¶
func (*Config) GetExtraRulesForFile ¶
GetExtraRulesForFile returns extra rules that apply to a specific file
func (*Config) ShouldIgnoreFile ¶
ShouldIgnoreFile checks if a file should be ignored based on ignore patterns
Click to show internal directories.
Click to hide internal directories.