Documentation
¶
Index ¶
- type CommitService
- type MockAIProvider
- 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) GetChangedFiles(ctx context.Context) ([]models.GitChange, 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) PushTag(ctx context.Context, version string) error
- func (m *MockGitService) StageAllChanges(ctx context.Context) error
- type MockJiraService
- type MockPRSummarizer
- type MockReleaseNotesGenerator
- type MockVCSClient
- func (m *MockVCSClient) AddLabelsToPR(ctx context.Context, prNumber int, labels []string) error
- func (m *MockVCSClient) CreateLabel(ctx context.Context, name, color, description string) error
- func (m *MockVCSClient) CreateRelease(ctx context.Context, release *models.Release, notes *models.ReleaseNotes, ...) error
- func (m *MockVCSClient) GetClosedIssuesBetweenTags(ctx context.Context, previousTag, currentTag string) ([]models.Issue, error)
- func (m *MockVCSClient) GetContributorsBetweenTags(ctx context.Context, previousTag, currentTag string) ([]string, error)
- func (m *MockVCSClient) GetFileAtTag(ctx context.Context, tag, filepath string) (string, error)
- func (m *MockVCSClient) GetFileStatsBetweenTags(ctx context.Context, previousTag, currentTag string) (*models.FileStatistics, error)
- func (m *MockVCSClient) GetIssue(ctx context.Context, issueNumber int) (*models.Issue, error)
- func (m *MockVCSClient) GetMergedPRsBetweenTags(ctx context.Context, previousTag, currentTag string) ([]models.PullRequest, error)
- func (m *MockVCSClient) GetPR(ctx context.Context, prNumber int) (models.PRData, error)
- func (m *MockVCSClient) GetPRIssues(ctx context.Context, branchName string, commits []string, prDescription string) ([]models.Issue, error)
- func (m *MockVCSClient) GetRelease(ctx context.Context, version string) (*models.VCSRelease, error)
- func (m *MockVCSClient) GetRepoLabels(ctx context.Context) ([]string, error)
- func (m *MockVCSClient) UpdateIssueChecklist(ctx context.Context, issueNumber int, indices []int) error
- func (m *MockVCSClient) UpdatePR(ctx context.Context, prNumber int, summary models.PRSummary) error
- func (m *MockVCSClient) UpdateRelease(ctx context.Context, version, body string) error
- type PRService
- type ReleaseService
- func (s *ReleaseService) AnalyzeNextRelease(ctx context.Context) (*models.Release, error)
- func (s *ReleaseService) CommitChangelog(ctx context.Context, version string) error
- func (s *ReleaseService) CreateTag(ctx context.Context, version, message string) error
- func (s *ReleaseService) EnrichReleaseContext(ctx context.Context, release *models.Release) error
- func (s *ReleaseService) GenerateReleaseNotes(ctx context.Context, release *models.Release) (*models.ReleaseNotes, error)
- func (s *ReleaseService) GetRelease(ctx context.Context, version string) (*models.VCSRelease, error)
- func (s *ReleaseService) PublishRelease(ctx context.Context, release *models.Release, notes *models.ReleaseNotes, ...) error
- func (s *ReleaseService) PushTag(ctx context.Context, version string) error
- func (s *ReleaseService) UpdateAppVersion(version string) error
- func (s *ReleaseService) UpdateLocalChangelog(release *models.Release, notes *models.ReleaseNotes) error
- func (s *ReleaseService) UpdateRelease(ctx context.Context, version, body string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitService ¶
type CommitService struct {
// contains filtered or unexported fields
}
func NewCommitService ¶
func NewCommitService( git ports.GitService, ai ports.CommitSummarizer, ticketManager ports.TickerManager, vcsClient ports.VCSClient, cfg *config.Config, trans *i18n.Translations) *CommitService
func (*CommitService) GenerateSuggestions ¶
func (s *CommitService) GenerateSuggestions(ctx context.Context, count int, progress func(string)) ([]models.CommitSuggestion, error)
func (*CommitService) GenerateSuggestionsWithIssue ¶ added in v1.4.0
func (s *CommitService) GenerateSuggestionsWithIssue(ctx context.Context, count int, issueNumber int, progress func(string)) ([]models.CommitSuggestion, error)
type MockAIProvider ¶ added in v1.4.0
func (*MockAIProvider) GenerateSuggestions ¶ added in v1.4.0
func (m *MockAIProvider) GenerateSuggestions(ctx context.Context, info models.CommitInfo, count int) ([]models.CommitSuggestion, error)
type MockGitService ¶ added in v1.4.0
func (*MockGitService) AddFileToStaging ¶ added in v1.4.0
func (m *MockGitService) AddFileToStaging(ctx context.Context, file string) error
func (*MockGitService) CreateCommit ¶ added in v1.4.0
func (m *MockGitService) CreateCommit(ctx context.Context, message string) error
func (*MockGitService) CreateTag ¶ added in v1.4.0
func (m *MockGitService) CreateTag(ctx context.Context, version, message string) error
func (*MockGitService) GetChangedFiles ¶ added in v1.4.0
func (*MockGitService) GetCommitCount ¶ added in v1.4.0
func (m *MockGitService) GetCommitCount(ctx context.Context) (int, error)
func (*MockGitService) GetCommitsBetweenTags ¶ added in v1.4.0
func (*MockGitService) GetCommitsSinceTag ¶ added in v1.4.0
func (*MockGitService) GetCurrentBranch ¶ added in v1.4.0
func (m *MockGitService) GetCurrentBranch(ctx context.Context) (string, error)
func (*MockGitService) GetDiff ¶ added in v1.4.0
func (m *MockGitService) GetDiff(ctx context.Context) (string, error)
func (*MockGitService) GetLastTag ¶ added in v1.4.0
func (m *MockGitService) GetLastTag(ctx context.Context) (string, error)
func (*MockGitService) GetRecentCommitMessages ¶ added in v1.4.0
func (*MockGitService) GetRepoInfo ¶ added in v1.4.0
func (*MockGitService) GetTagDate ¶ added in v1.4.0
func (*MockGitService) HasStagedChanges ¶ added in v1.4.0
func (m *MockGitService) HasStagedChanges(ctx context.Context) bool
func (*MockGitService) PushTag ¶ added in v1.4.0
func (m *MockGitService) PushTag(ctx context.Context, version string) error
func (*MockGitService) StageAllChanges ¶ added in v1.4.0
func (m *MockGitService) StageAllChanges(ctx context.Context) error
type MockJiraService ¶ added in v1.4.0
func (*MockJiraService) GetTicketInfo ¶ added in v1.4.0
func (m *MockJiraService) GetTicketInfo(ticketID string) (*models.TicketInfo, error)
type MockPRSummarizer ¶ added in v1.4.0
func (*MockPRSummarizer) GeneratePRSummary ¶ added in v1.4.0
type MockReleaseNotesGenerator ¶ added in v1.4.0
func (*MockReleaseNotesGenerator) GenerateNotes ¶ added in v1.4.0
func (m *MockReleaseNotesGenerator) GenerateNotes(ctx context.Context, release *models.Release) (*models.ReleaseNotes, error)
type MockVCSClient ¶ added in v1.4.0
func (*MockVCSClient) AddLabelsToPR ¶ added in v1.4.0
func (*MockVCSClient) CreateLabel ¶ added in v1.4.0
func (m *MockVCSClient) CreateLabel(ctx context.Context, name, color, description string) error
func (*MockVCSClient) CreateRelease ¶ added in v1.4.0
func (m *MockVCSClient) CreateRelease(ctx context.Context, release *models.Release, notes *models.ReleaseNotes, draft bool) error
func (*MockVCSClient) GetClosedIssuesBetweenTags ¶ added in v1.4.0
func (*MockVCSClient) GetContributorsBetweenTags ¶ added in v1.4.0
func (*MockVCSClient) GetFileAtTag ¶ added in v1.4.0
func (*MockVCSClient) GetFileStatsBetweenTags ¶ added in v1.4.0
func (m *MockVCSClient) GetFileStatsBetweenTags(ctx context.Context, previousTag, currentTag string) (*models.FileStatistics, error)
func (*MockVCSClient) GetMergedPRsBetweenTags ¶ added in v1.4.0
func (m *MockVCSClient) GetMergedPRsBetweenTags(ctx context.Context, previousTag, currentTag string) ([]models.PullRequest, error)
func (*MockVCSClient) GetPRIssues ¶ added in v1.4.0
func (*MockVCSClient) GetRelease ¶ added in v1.4.0
func (m *MockVCSClient) GetRelease(ctx context.Context, version string) (*models.VCSRelease, error)
func (*MockVCSClient) GetRepoLabels ¶ added in v1.4.0
func (m *MockVCSClient) GetRepoLabels(ctx context.Context) ([]string, error)
func (*MockVCSClient) UpdateIssueChecklist ¶ added in v1.4.0
func (*MockVCSClient) UpdateRelease ¶ added in v1.4.0
func (m *MockVCSClient) UpdateRelease(ctx context.Context, version, body string) error
type PRService ¶ added in v1.2.0
type PRService struct {
// contains filtered or unexported fields
}
func NewPRService ¶ added in v1.2.0
func NewPRService(vcsClient ports.VCSClient, aiService ports.PRSummarizer, trans *i18n.Translations, cfg *config.Config) *PRService
type ReleaseService ¶ added in v1.3.0
type ReleaseService struct {
// contains filtered or unexported fields
}
func NewReleaseService ¶ added in v1.3.0
func NewReleaseService( git ports.GitService, vcsClient ports.VCSClient, notesGen ports.ReleaseNotesGenerator, trans *i18n.Translations, config *config.Config, ) *ReleaseService
func (*ReleaseService) AnalyzeNextRelease ¶ added in v1.3.0
func (*ReleaseService) CommitChangelog ¶ added in v1.4.0
func (s *ReleaseService) CommitChangelog(ctx context.Context, version string) error
func (*ReleaseService) CreateTag ¶ added in v1.3.0
func (s *ReleaseService) CreateTag(ctx context.Context, version, message string) error
func (*ReleaseService) EnrichReleaseContext ¶ added in v1.4.0
func (*ReleaseService) GenerateReleaseNotes ¶ added in v1.3.0
func (s *ReleaseService) GenerateReleaseNotes(ctx context.Context, release *models.Release) (*models.ReleaseNotes, error)
func (*ReleaseService) GetRelease ¶ added in v1.4.0
func (s *ReleaseService) GetRelease(ctx context.Context, version string) (*models.VCSRelease, error)
func (*ReleaseService) PublishRelease ¶ added in v1.3.0
func (s *ReleaseService) PublishRelease(ctx context.Context, release *models.Release, notes *models.ReleaseNotes, draft bool) error
func (*ReleaseService) PushTag ¶ added in v1.3.0
func (s *ReleaseService) PushTag(ctx context.Context, version string) error
func (*ReleaseService) UpdateAppVersion ¶ added in v1.4.0
func (s *ReleaseService) UpdateAppVersion(version string) error
func (*ReleaseService) UpdateLocalChangelog ¶ added in v1.4.0
func (s *ReleaseService) UpdateLocalChangelog(release *models.Release, notes *models.ReleaseNotes) error
func (*ReleaseService) UpdateRelease ¶ added in v1.4.0
func (s *ReleaseService) UpdateRelease(ctx context.Context, version, body string) error
Click to show internal directories.
Click to hide internal directories.