Documentation ¶
Index ¶
- type SemanticRelease
- func (s *SemanticRelease) GetCIProvider() (*ci.ProviderConfig, error)
- func (s *SemanticRelease) GetChangelog(releaseVersion *shared.ReleaseVersion) (*shared.GeneratedChangelog, error)
- func (s *SemanticRelease) GetNextVersion(provider *ci.ProviderConfig, force bool) (*shared.ReleaseVersion, error)
- func (s *SemanticRelease) Release(provider *ci.ProviderConfig, force bool) error
- func (s *SemanticRelease) SetVersion(provider *ci.ProviderConfig, version string) error
- func (s *SemanticRelease) WriteChangeLog(changelogContent, file string) error
- func (s *SemanticRelease) ZipFiles() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SemanticRelease ¶
type SemanticRelease struct {
// contains filtered or unexported fields
}
SemanticRelease struct
func New ¶
func New(c *config.ReleaseConfig, repository string, checkConfig bool) (*SemanticRelease, error)
New SemanticRelease struct
func (*SemanticRelease) GetCIProvider ¶
func (s *SemanticRelease) GetCIProvider() (*ci.ProviderConfig, error)
GetCIProvider result with ci config
func (*SemanticRelease) GetChangelog ¶
func (s *SemanticRelease) GetChangelog(releaseVersion *shared.ReleaseVersion) (*shared.GeneratedChangelog, error)
GetChangelog from last version till now
func (*SemanticRelease) GetNextVersion ¶
func (s *SemanticRelease) GetNextVersion(provider *ci.ProviderConfig, force bool) (*shared.ReleaseVersion, error)
GetNextVersion from .version or calculate new from commits
func (*SemanticRelease) Release ¶
func (s *SemanticRelease) Release(provider *ci.ProviderConfig, force bool) error
Release publish release to provider
func (*SemanticRelease) SetVersion ¶
func (s *SemanticRelease) SetVersion(provider *ci.ProviderConfig, version string) error
SetVersion for git repository
func (*SemanticRelease) WriteChangeLog ¶
func (s *SemanticRelease) WriteChangeLog(changelogContent, file string) error
WriteChangeLog wirtes changelog content to the given file
func (*SemanticRelease) ZipFiles ¶
func (s *SemanticRelease) ZipFiles() error
ZipFiles zip files configured in release config
Click to show internal directories.
Click to hide internal directories.