Documentation
¶
Index ¶
- type ChangeSeverity
- type CodeAnalysis
- type CodeExample
- type Commit
- type CommitInfo
- type CommitSuggestion
- type Comparison
- type CriteriaStatus
- type DependencyChange
- type DependencyChangeType
- type FileChange
- type FileStatistics
- type GitChange
- type Issue
- type PRData
- type PRSummary
- type PullRequest
- type Release
- type ReleaseItem
- type ReleaseNotes
- type RequirementsAnalysis
- type TicketInfo
- type VCSRelease
- type VersionBump
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeSeverity ¶ added in v1.4.0
type ChangeSeverity string
const ( MajorChange ChangeSeverity = "major" MinorChange ChangeSeverity = "minor" PatchChange ChangeSeverity = "patch" UnknownChange ChangeSeverity = "unknown" )
type CodeAnalysis ¶ added in v1.1.0
type CodeExample ¶ added in v1.4.0
type CodeExample struct {
Title string // Título del ejemplo
Description string // Descripción breve
Code string // Código del ejemplo
Language string // Lenguaje (bash, go, etc.)
}
CodeExample representa un ejemplo de código con descripción
type Commit ¶ added in v1.2.0
type Commit struct {
Message string
}
Commit representa un commit incluido en el PR.
type CommitInfo ¶
type CommitInfo struct {
Files []string
Diff string
TicketInfo *TicketInfo
IssueInfo *Issue
RecentHistory string
}
type CommitSuggestion ¶
type CommitSuggestion struct {
CommitTitle string
Explanation string
Files []string
CodeAnalysis CodeAnalysis
RequirementsAnalysis RequirementsAnalysis
}
type Comparison ¶ added in v1.4.0
type Comparison struct {
Feature string // Nombre de la feature
Before string // Estado anterior
After string // Estado nuevo
}
Comparison representa una comparación antes/después
type CriteriaStatus ¶ added in v1.1.0
type CriteriaStatus string
const ( CriteriaFullyMet CriteriaStatus = "full_met" CriteriaPartiallyMet CriteriaStatus = "partially_met" CriteriaNotMet CriteriaStatus = "not_met" )
type DependencyChange ¶ added in v1.4.0
type DependencyChange struct {
Name string // Nombre del paquete (ej: "github.com/user/repo", "react")
OldVersion string // Versión anterior (vacío si Type == DependencyAdded)
NewVersion string // Versión nueva (vacío si Type == DependencyRemoved)
Type DependencyChangeType // Tipo de cambio
Manager string // Gestor: "go.mod", "package.json", "Cargo.toml", etc.
Severity ChangeSeverity // Severidad: major/minor/patch para detectar breaking changes
IsDirect bool // true = dependencia directa, false = dev/indirect
}
DependencyChange representa un cambio en una dependencia del proyecto
type DependencyChangeType ¶ added in v1.4.0
type DependencyChangeType string
const ( DependencyAdded DependencyChangeType = "added" DependencyUpdated DependencyChangeType = "updated" DependencyRemoved DependencyChangeType = "removed" )
type FileChange ¶ added in v1.4.0
type FileStatistics ¶ added in v1.4.0
type FileStatistics struct {
FilesChanged int
Insertions int
Deletions int
TopFiles []FileChange
}
type PRData ¶ added in v1.2.0
type PRData struct {
ID int
Creator string
Commits []Commit
Diff string
BranchName string
RelatedIssues []Issue
PRDescription string
}
PRData contiene la información extraída de una Pull Request.
type PRSummary ¶ added in v1.2.0
PRSummary es el resumen generado para el PR, con título, cuerpo y etiquetas.
type PullRequest ¶ added in v1.4.0
type Release ¶ added in v1.3.0
type Release struct {
Version string
PreviousVersion string
Title string
Summary string
Date time.Time
Features []ReleaseItem
BugFixes []ReleaseItem
Breaking []ReleaseItem
Documentation []ReleaseItem
Improvements []ReleaseItem
Other []ReleaseItem
AllCommits []Commit
VersionBump VersionBump
ClosedIssues []Issue
MergedPRs []PullRequest
Contributors []string
NewContributors []string
Dependencies []DependencyChange
FileStats FileStatistics
}
Release representa un release con toda la info
type ReleaseItem ¶ added in v1.3.0
type ReleaseItem struct {
Type string // feat, fix, docs, etc
Scope string
Description string
Breaking bool
CommitHash string
PRNumber string // si tiene pr asociado
}
ReleaseItem representa un item en el changelog
type ReleaseNotes ¶ added in v1.3.0
type ReleaseNotes struct {
Title string
Summary string
Highlights []string
Changelog string
Recommended VersionBump
QuickStart string
Examples []CodeExample
BreakingChanges []string
Comparisons []Comparison
Links map[string]string
}
ReleaseNotes es el resultado generado por la ia
type RequirementsAnalysis ¶ added in v1.1.0
type RequirementsAnalysis struct {
CriteriaStatus CriteriaStatus
MissingCriteria []string
CompletedIndices []int
ImprovementSuggestions []string
}
type TicketInfo ¶ added in v1.1.0
type VCSRelease ¶ added in v1.4.0
type VersionBump ¶ added in v1.3.0
type VersionBump string
VersionBump indica el tipo de bump de version
const ( MajorBump VersionBump = "major" MinorBump VersionBump = "minor" PatchBump VersionBump = "patch" NoBump VersionBump = "none" )
Click to show internal directories.
Click to hide internal directories.