Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VersioningAction ¶
type VersioningAction struct {
// contains filtered or unexported fields
}
VersioningAction contains logic to generate a new version
func NewAction ¶
func NewAction(ownerAndRepository string, component string, label string, branch string, revision string, initialVersion string, defaultBranch string, client *github.Client) VersioningAction
NewAction creates a new instance of the GitHub action for a given repository specified in the format "owner/repository"
func (VersioningAction) GenerateVersion ¶
func (a VersioningAction) GenerateVersion(dryRun bool) *semver.Version
GenerateVersion will generate the next version for a component based on the commits since the previous version. If dryRun is true, then the version will not be created on GitHub. The next version number is picked based on the Conventional Commits specification. Only commits with a scope matching the component name will be considered.
Click to show internal directories.
Click to hide internal directories.