Documentation
¶
Index ¶
- type GitService
- func (s *GitService) AddFileToStaging(ctx context.Context, file string) error
- func (s *GitService) CreateCommit(ctx context.Context, message string) error
- func (s *GitService) CreateTag(ctx context.Context, version, message string) error
- func (s *GitService) GetChangedFiles(ctx context.Context) ([]models.GitChange, error)
- func (s *GitService) GetCommitCount(ctx context.Context) (int, error)
- func (s *GitService) GetCommitsBetweenTags(ctx context.Context, fromTag, toTag string) ([]models.Commit, error)
- func (s *GitService) GetCommitsSinceTag(ctx context.Context, tag string) ([]models.Commit, error)
- func (s *GitService) GetCurrentBranch(ctx context.Context) (string, error)
- func (s *GitService) GetDiff(ctx context.Context) (string, error)
- func (s *GitService) GetLastTag(ctx context.Context) (string, error)
- func (s *GitService) GetRecentCommitMessages(ctx context.Context, count int) (string, error)
- func (s *GitService) GetRepoInfo(ctx context.Context) (string, string, string, error)
- func (s *GitService) GetTagDate(ctx context.Context, tag string) (string, error)
- func (s *GitService) HasStagedChanges(ctx context.Context) bool
- func (s *GitService) PushTag(ctx context.Context, version string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitService ¶
type GitService struct {
// contains filtered or unexported fields
}
func NewGitService ¶
func NewGitService(trans *i18n.Translations) *GitService
func (*GitService) AddFileToStaging ¶ added in v1.1.0
func (s *GitService) AddFileToStaging(ctx context.Context, file string) error
func (*GitService) CreateCommit ¶
func (s *GitService) CreateCommit(ctx context.Context, message string) error
func (*GitService) CreateTag ¶ added in v1.3.0
func (s *GitService) CreateTag(ctx context.Context, version, message string) error
func (*GitService) GetChangedFiles ¶
func (*GitService) GetCommitCount ¶ added in v1.3.0
func (s *GitService) GetCommitCount(ctx context.Context) (int, error)
func (*GitService) GetCommitsBetweenTags ¶ added in v1.4.0
func (*GitService) GetCommitsSinceTag ¶ added in v1.3.0
func (*GitService) GetCurrentBranch ¶ added in v1.1.0
func (s *GitService) GetCurrentBranch(ctx context.Context) (string, error)
func (*GitService) GetLastTag ¶ added in v1.3.0
func (s *GitService) GetLastTag(ctx context.Context) (string, error)
func (*GitService) GetRecentCommitMessages ¶ added in v1.4.0
func (*GitService) GetRepoInfo ¶ added in v1.3.0
func (*GitService) GetTagDate ¶ added in v1.4.0
GetTagDate returns the creation date of a tag in YYYY-MM-DD format
func (*GitService) HasStagedChanges ¶
func (s *GitService) HasStagedChanges(ctx context.Context) bool
HasStagedChanges verifica si hay cambios en el área de staging
Click to show internal directories.
Click to hide internal directories.