Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNoCommitsRelease signals that no commit exist so failing the release ErrNoCommitsRelease = fmt.Errorf("no commits to release") )
Functions ¶
This section is empty.
Types ¶
type CommitParse ¶
type CommitParse struct {
// contains filtered or unexported fields
}
CommitParse implements commit parsing
func NewCommitParse ¶
func NewCommitParse(config *gitmono.Config) *CommitParse
NewCommitParse creates a new commit parser
func (*CommitParse) GetBumperFromCommit ¶
func (cp *CommitParse) GetBumperFromCommit(commit *git.Commit) gitmono.Bumper
GetBumperFromCommit parses commit message based on scheme
Returns the bumper to use for this commit or nil
type Diff ¶
type Diff struct {
// contains filtered or unexported fields
}
Diff performs diff operation for a monorepo.
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log performs log operation for the specifed monorepo project
func (*Log) CommitHashByRevision ¶
CommitHashByRevision lookup the commit hash for a revision/reference.
type Tag ¶
type Tag struct {
// contains filtered or unexported fields
}
Tag performs tag operation for a monorepo
func (*Tag) CreateTag ¶
func (t *Tag) CreateTag(versionedCommit *gitmono.VersionedCommit) error
CreateTag create an annotated tag on the provided commit
func (*Tag) ListProjectVersionTags ¶ added in v0.10.0
ListProjectVersionTags retrieves all project tags ordered by descending version value
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version combines git commands to read and write releases
func NewVersion ¶
func NewVersion(config *ctx.Config, logger ctx.Logger, tagger ctx.Tagger, commitParser ctx.CommitParser) *Version
NewVersion creates a new version instance
func (*Version) GetCurrentVersion ¶
func (v *Version) GetCurrentVersion() (*ctx.VersionedCommit, error)
GetCurrentVersion retrieves the current version
func (*Version) InitVersion ¶
func (v *Version) InitVersion(commitID string) (*ctx.VersionedCommit, error)
InitVersion identifies checks if project has version and releases the initial version
func (*Version) ReleaseNewVersion ¶
func (v *Version) ReleaseNewVersion(commitID string) (*ctx.VersionedCommit, error)
ReleaseNewVersion calculates the new version and performs release
Returns an error if there are no new commits for the provided project