Documentation ¶
Index ¶
- func ProposeVersion(current *semver.Version, bumpType, preRelease string) (*semver.Version, error)
- type Bumper
- func (b *Bumper) AnalyzeVersionChanges(ctx context.Context) (string, error)
- func (b *Bumper) ApplyVersionChange(ctx context.Context) error
- func (b *Bumper) CheckVersionObjects(version string) (VersionStatus, error)
- func (b *Bumper) ClearProposedVersion()
- func (b *Bumper) GetCurrentVersion() string
- func (b *Bumper) GetFilesToUpdate() []string
- func (b *Bumper) GetProposedVersion() *semver.Version
- func (b *Bumper) GetWorkflowState() (*WorkflowState, error)
- func (b *Bumper) ProposeVersionChange(bumpType, preRelease string) (string, error)
- type Parser
- type Strategy
- type VersionStatus
- type WorkflowState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProposeVersion ¶
ProposeVersion creates a new version based on the current version and requested changes
Types ¶
type Bumper ¶
type Bumper struct {
// contains filtered or unexported fields
}
Bumper manages version changes across files and git repository
func NewBumper ¶
NewBumper creates a Bumper instance with configuration, LLM client, and git repository
func (*Bumper) AnalyzeVersionChanges ¶
AnalyzeVersionChanges analyzes changes and suggests version bump
func (*Bumper) ApplyVersionChange ¶
ApplyVersionChange updates files and creates git objects according to configuration
func (*Bumper) CheckVersionObjects ¶
func (b *Bumper) CheckVersionObjects(version string) (VersionStatus, error)
func (*Bumper) ClearProposedVersion ¶
func (b *Bumper) ClearProposedVersion()
ClearProposedVersion clears the currently proposed version
func (*Bumper) GetCurrentVersion ¶
GetCurrentVersion returns the current version string
func (*Bumper) GetFilesToUpdate ¶
GetFilesToUpdate returns paths of all files that will be updated during version change
func (*Bumper) GetProposedVersion ¶
func (b *Bumper) GetProposedVersion() *semver.Version
GetProposedVersion returns the currently proposed version
func (*Bumper) GetWorkflowState ¶
func (b *Bumper) GetWorkflowState() (*WorkflowState, error)
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser handles semantic version parsing and validation
func New ¶
New creates a Parser instance with the current version and keyword lists for change analysis
func (*Parser) ParseSuggestion ¶
ParseSuggestion parses a version suggestion string into bump type and prerelease components. Accepts both full versions (e.g., "1.2.3-beta1") and simple formats (e.g., "minor:beta1" or "beta2")
type Strategy ¶
type Strategy struct {
// contains filtered or unexported fields
}
Strategy defines keywords for version change detection
type VersionStatus ¶
VersionStatus represents the current status of version objects