Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangelogService ¶
ChangelogService is a service struct to handle git logs
func NewChangelogService ¶
func NewChangelogService(gitService git.Git, versionTagService *VersionTagService) *ChangelogService
NewChangelogService returns a new pointer instance of ChangelogService with the given arguments
func (ChangelogService) ChangelogFromVersionTag ¶
func (c ChangelogService) ChangelogFromVersionTag(latestVersionTag string) ([]string, error)
ChangelogFromVersionTag returns a list of git logs since the latest given version tag. If latestVersionTag parameter is empty all current commits are used.
type ReleaseService ¶
ReleaseService is a service struct to handle release (logs)
func NewReleaseService ¶
func NewReleaseService(gitService git.Git, gitRemote string, gitRepoURL string) *ReleaseService
NewReleaseService returns a new pointer instance of ReleaseService with the given arguments
func (ReleaseService) RepoHTTPURL ¶
func (s ReleaseService) RepoHTTPURL() (string, error)
RepoHTTPURL returns the git repository URL with http instead of ssh & Co. TODO: Maybe move this block into another service or context?
func (ReleaseService) RepoVersionTagCompareURL ¶
func (s ReleaseService) RepoVersionTagCompareURL(latestVersionTag string, newVersionTag string) (string, error)
RepoVersionTagCompareURL creates the release compare HTTP URL for two versions. It returns an empty string if the latestVersionTag parameter is not present.
func (ReleaseService) Title ¶
func (s ReleaseService) Title(newVersionTag string) string
Title returns the title for the new release with the given version tag
type VersionTagService ¶
VersionTagService is a service struct to handle version tags
func NewVersionTagService ¶
func NewVersionTagService(g git.Git, defaultFirstVersion string) *VersionTagService
NewVersionTagService returns a new pointer instance of VersionTagService with the given arguments
func (VersionTagService) CreateNew ¶
func (s VersionTagService) CreateNew(newVersion string) (string, error)
CreateNew builds a new version git tag or returns the config defined first version if no git tag is given yet. If newVersion parameter is present this one is used instead.
func (VersionTagService) LatestVersionTag ¶
func (s VersionTagService) LatestVersionTag(latestVersionTag string) (string, error)
LatestVersionTag gets and returns the latest version tag from the list through git or just returns the latestVersionTag parameter (if given)