pkg

package
v0.0.0-...-7dae440 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL