Documentation
¶
Index ¶
- func FormatReleaseMarkdown(release *models.Release, notes *models.ReleaseNotes, trans *i18n.Translations) string
- type MockGitService
- func (m *MockGitService) AddFileToStaging(ctx context.Context, file string) error
- func (m *MockGitService) CreateCommit(ctx context.Context, message string) error
- func (m *MockGitService) CreateTag(ctx context.Context, version, message string) error
- func (m *MockGitService) FetchTags(ctx context.Context) error
- func (m *MockGitService) GetChangedFiles(ctx context.Context) ([]string, error)
- func (m *MockGitService) GetCommitCount(ctx context.Context) (int, error)
- func (m *MockGitService) GetCommitsBetweenTags(ctx context.Context, fromTag, toTag string) ([]models.Commit, error)
- func (m *MockGitService) GetCommitsSinceTag(ctx context.Context, tag string) ([]models.Commit, error)
- func (m *MockGitService) GetCurrentBranch(ctx context.Context) (string, error)
- func (m *MockGitService) GetDiff(ctx context.Context) (string, error)
- func (m *MockGitService) GetLastTag(ctx context.Context) (string, error)
- func (m *MockGitService) GetRecentCommitMessages(ctx context.Context, count int) ([]string, error)
- func (m *MockGitService) GetRepoInfo(ctx context.Context) (string, string, string, error)
- func (m *MockGitService) GetTagDate(ctx context.Context, tag string) (string, error)
- func (m *MockGitService) HasStagedChanges(ctx context.Context) bool
- func (m *MockGitService) Push(ctx context.Context) error
- func (m *MockGitService) PushTag(ctx context.Context, version string) error
- func (m *MockGitService) ValidateGitConfig(ctx context.Context) error
- func (m *MockGitService) ValidateTagExists(ctx context.Context, tag string) error
- type MockReleaseService
- func (m *MockReleaseService) AnalyzeNextRelease(ctx context.Context) (*models.Release, error)
- func (m *MockReleaseService) BuildChangelogPreview(ctx context.Context, release *models.Release, notes *models.ReleaseNotes) string
- func (m *MockReleaseService) CommitChangelog(ctx context.Context, version string) error
- func (m *MockReleaseService) CreateTag(ctx context.Context, version, message string) error
- func (m *MockReleaseService) EnrichReleaseContext(ctx context.Context, release *models.Release) error
- func (m *MockReleaseService) GenerateReleaseNotes(ctx context.Context, release *models.Release) (*models.ReleaseNotes, error)
- func (m *MockReleaseService) GetRelease(ctx context.Context, version string) (*models.VCSRelease, error)
- func (m *MockReleaseService) PublishRelease(ctx context.Context, release *models.Release, notes *models.ReleaseNotes, ...) error
- func (m *MockReleaseService) PushChanges(ctx context.Context) error
- func (m *MockReleaseService) PushTag(ctx context.Context, version string) error
- func (m *MockReleaseService) UpdateAppVersion(ctx context.Context, version string) error
- func (m *MockReleaseService) UpdateLocalChangelog(release *models.Release, notes *models.ReleaseNotes) error
- func (m *MockReleaseService) UpdateRelease(ctx context.Context, version, body string) error
- func (m *MockReleaseService) ValidateMainBranch(ctx context.Context) error
- type ReleaseCommandFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatReleaseMarkdown ¶
func FormatReleaseMarkdown(release *models.Release, notes *models.ReleaseNotes, trans *i18n.Translations) string
FormatReleaseMarkdown generates the full release Markdown with all sections
Types ¶
type MockGitService ¶
func (*MockGitService) AddFileToStaging ¶
func (m *MockGitService) AddFileToStaging(ctx context.Context, file string) error
func (*MockGitService) CreateCommit ¶
func (m *MockGitService) CreateCommit(ctx context.Context, message string) error
func (*MockGitService) CreateTag ¶
func (m *MockGitService) CreateTag(ctx context.Context, version, message string) error
func (*MockGitService) GetChangedFiles ¶
func (m *MockGitService) GetChangedFiles(ctx context.Context) ([]string, error)
func (*MockGitService) GetCommitCount ¶
func (m *MockGitService) GetCommitCount(ctx context.Context) (int, error)
func (*MockGitService) GetCommitsBetweenTags ¶
func (*MockGitService) GetCommitsSinceTag ¶
func (*MockGitService) GetCurrentBranch ¶
func (m *MockGitService) GetCurrentBranch(ctx context.Context) (string, error)
func (*MockGitService) GetDiff ¶
func (m *MockGitService) GetDiff(ctx context.Context) (string, error)
func (*MockGitService) GetLastTag ¶
func (m *MockGitService) GetLastTag(ctx context.Context) (string, error)
func (*MockGitService) GetRecentCommitMessages ¶
func (*MockGitService) GetRepoInfo ¶
func (*MockGitService) GetTagDate ¶
func (*MockGitService) HasStagedChanges ¶
func (m *MockGitService) HasStagedChanges(ctx context.Context) bool
func (*MockGitService) PushTag ¶
func (m *MockGitService) PushTag(ctx context.Context, version string) error
func (*MockGitService) ValidateGitConfig ¶
func (m *MockGitService) ValidateGitConfig(ctx context.Context) error
func (*MockGitService) ValidateTagExists ¶
func (m *MockGitService) ValidateTagExists(ctx context.Context, tag string) error
type MockReleaseService ¶
func (*MockReleaseService) AnalyzeNextRelease ¶
func (*MockReleaseService) BuildChangelogPreview ¶ added in v1.7.0
func (m *MockReleaseService) BuildChangelogPreview(ctx context.Context, release *models.Release, notes *models.ReleaseNotes) string
func (*MockReleaseService) CommitChangelog ¶
func (m *MockReleaseService) CommitChangelog(ctx context.Context, version string) error
func (*MockReleaseService) CreateTag ¶
func (m *MockReleaseService) CreateTag(ctx context.Context, version, message string) error
func (*MockReleaseService) EnrichReleaseContext ¶
func (*MockReleaseService) GenerateReleaseNotes ¶
func (m *MockReleaseService) GenerateReleaseNotes(ctx context.Context, release *models.Release) (*models.ReleaseNotes, error)
func (*MockReleaseService) GetRelease ¶
func (m *MockReleaseService) GetRelease(ctx context.Context, version string) (*models.VCSRelease, error)
func (*MockReleaseService) PublishRelease ¶
func (m *MockReleaseService) PublishRelease(ctx context.Context, release *models.Release, notes *models.ReleaseNotes, draft bool, buildBinaries bool, progressCh chan<- models.BuildProgress) error
func (*MockReleaseService) PushChanges ¶
func (m *MockReleaseService) PushChanges(ctx context.Context) error
func (*MockReleaseService) PushTag ¶
func (m *MockReleaseService) PushTag(ctx context.Context, version string) error
func (*MockReleaseService) UpdateAppVersion ¶
func (m *MockReleaseService) UpdateAppVersion(ctx context.Context, version string) error
func (*MockReleaseService) UpdateLocalChangelog ¶
func (m *MockReleaseService) UpdateLocalChangelog(release *models.Release, notes *models.ReleaseNotes) error
func (*MockReleaseService) UpdateRelease ¶
func (m *MockReleaseService) UpdateRelease(ctx context.Context, version, body string) error
func (*MockReleaseService) ValidateMainBranch ¶
func (m *MockReleaseService) ValidateMainBranch(ctx context.Context) error
type ReleaseCommandFactory ¶
type ReleaseCommandFactory struct {
// contains filtered or unexported fields
}
func NewReleaseCommandFactory ¶
func NewReleaseCommandFactory(gitSvc *git.GitService, config *cfg.Config) *ReleaseCommandFactory
func (*ReleaseCommandFactory) CreateCommand ¶
func (r *ReleaseCommandFactory) CreateCommand(t *i18n.Translations, _ *cfg.Config) *cli.Command
Click to show internal directories.
Click to hide internal directories.