Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitParse ¶
type CommitParse struct {
// contains filtered or unexported fields
}
CommitParse implements commit parsing
func NewCommitParse ¶
func NewCommitParse(monorepo *gitmono.MonoRepo) *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
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version combines git commands to read and write releases
func NewVersion ¶
func NewVersion(monorepo *ctx.MonoRepo, 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