Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Differ ¶
type Differ struct {
// contains filtered or unexported fields
}
Differ performs diff operation for a monorepo.
type GitMono ¶
type GitMono struct {
// contains filtered or unexported fields
}
GitMono contains repository instance and command parameters
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger performs log operation for the monorepo projects provided
func (*Logger) CommitHashByRevision ¶
CommitHashByRevision lookup the commit hash for a revision/reference.
type Tagger ¶
type Tagger struct {
// contains filtered or unexported fields
}
Tagger performs tag operation for a monorepo
func (*Tagger) CreateTag ¶ added in v0.4.1
func (t *Tagger) CreateTag(versionedCommit *VersionedCommit) error
CreateTag create a tag on the provided commit
type VersionedCommit ¶
type VersionedCommit struct {
CommitID string
Project string
VersionPrefix string
Version *version.Version
}
VersionedCommit points a commit that is assigned a version
func (*VersionedCommit) GetTag ¶
func (vc *VersionedCommit) GetTag() string
GetTag returns the tag to version a commit with
type Versioner ¶
type Versioner struct {
// contains filtered or unexported fields
}
Versioner combines git commands to read and write releases
func NewVersioner ¶
NewVersioner creates a new versioner instance
func (*Versioner) GetCurrentVersion ¶ added in v0.4.1
func (v *Versioner) GetCurrentVersion(project string) (*VersionedCommit, error)
GetCurrentVersion retrieves the current version for the specified project
func (*Versioner) InitVersion ¶
func (v *Versioner) InitVersion(projects []string) ([]*VersionedCommit, error)
InitVersion identifies the projects with no initial version and performs release using initial version
func (*Versioner) ReleaseNewVersion ¶ added in v0.4.1
func (v *Versioner) ReleaseNewVersion(project string) (*VersionedCommit, error)
ReleaseNewVersion calculates the new version for the provided project and performs release
Returns an error if there are no new commits for the provided project