models

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 CodeAnalysis struct {
	ChangesOverview string
	PrimaryPurpose  string
	TechnicalImpact string
}

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 FileChange struct {
	Path      string
	Additions int
	Deletions int
}

type FileStatistics added in v1.4.0

type FileStatistics struct {
	FilesChanged int
	Insertions   int
	Deletions    int
	TopFiles     []FileChange
}

type GitChange

type GitChange struct {
	Path   string
	Status string
}

type Issue added in v1.4.0

type Issue struct {
	ID          int
	Number      int
	Title       string
	Description string
	State       string
	Labels      []string
	Author      string
	URL         string
	Criteria    []string
}

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

type PRSummary struct {
	Title  string
	Body   string
	Labels []string
}

PRSummary es el resumen generado para el PR, con título, cuerpo y etiquetas.

type PullRequest added in v1.4.0

type PullRequest struct {
	Number      int
	Title       string
	Description string
	Author      string
	Labels      []string
	URL         string
}

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 TicketInfo struct {
	TicketID    string   `json:"ticket_id"`
	TicketTitle string   `json:"ticket_title"`
	TitleDesc   string   `json:"title_desc"`
	Criteria    []string `json:"criteria"`
}

type VCSRelease added in v1.4.0

type VCSRelease struct {
	TagName string
	Name    string
	Body    string
	Draft   bool
	URL     string
}

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL