Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxPRDetails = 100 MaxLogIssues = 20 MaxIssueMsgLen = 256 MaxFormattedLen = 1024 )
Variables ¶
This section is empty.
Functions ¶
func LevelLabel ¶
Types ¶
type BranchResultSummary ¶ added in v0.4.0
type DependencySummary ¶ added in v0.4.0
type FormattedLine ¶
func (FormattedLine) LevelLabel ¶
func (f FormattedLine) LevelLabel() string
type PRActivity ¶
type ParseLogsResult ¶ added in v0.4.0
type ParseLogsResult struct {
HasIssues bool
WarnCount int
ErrorCount int
PRActivity *PRActivity
Dependencies *DependencySummary
BranchResults *BranchResultSummary
}
ParseLogsResult is the aggregated result of scanning a Renovate NDJSON log.
func ParseLogs ¶ added in v0.4.0
func ParseLogs(r io.Reader, maxBytes int64) (*ParseLogsResult, error)
ParseLogs streams a Renovate NDJSON log from r and returns the aggregated PR activity along with whether WARN/ERROR entries were seen. A single scanner pass feeds both the metrics and UI consumers so they cannot drift. The reader is consumed up to maxBytes; pass a negative value for no cap.
type ParseResult ¶
type ParseResult struct {
HasIssues bool
RenovateResultStatus string
PRActivity *PRActivity
LogIssues *LogIssues
Lines []FormattedLine
}
func ParseRenovateLogs ¶
func ParseRenovateLogs(logs string) *ParseResult
Click to show internal directories.
Click to hide internal directories.