models

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 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 CodeAnalysis added in v1.1.0

type CodeAnalysis struct {
	ChangesOverview string
	PrimaryPurpose  string
	TechnicalImpact string
}

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
}

type CommitSuggestion

type CommitSuggestion struct {
	CommitTitle          string
	Explanation          string
	Files                []string
	CodeAnalysis         CodeAnalysis
	RequirementsAnalysis RequirementsAnalysis
}

type CriteriaStatus added in v1.1.0

type CriteriaStatus string
const (
	CriteriaFullyMet     CriteriaStatus = "full_met"
	CriteriaPartiallyMet CriteriaStatus = "partially_met"
	CriteriaNotMet       CriteriaStatus = "not_met"
)

type GitChange

type GitChange struct {
	Path   string
	Status string
}

type PRData added in v1.2.0

type PRData struct {
	ID      int
	Creator string
	Commits []Commit
	Diff    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 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
}

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
}

ReleaseNotes es el resultado generado por la ia

type RequirementsAnalysis added in v1.1.0

type RequirementsAnalysis struct {
	CriteriaStatus         CriteriaStatus
	MissingCriteria        []string
	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 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