mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-02-06 17:57:05 +00:00
refactor: interface for versioning strategy (#109)
This commit is contained in:
parent
11f8403241
commit
ef1d92cff0
5 changed files with 15 additions and 12 deletions
|
|
@ -6,7 +6,9 @@ import (
|
|||
"github.com/apricote/releaser-pleaser/internal/git"
|
||||
)
|
||||
|
||||
type Strategy = func(git.Releases, VersionBump, NextVersionType) (string, error)
|
||||
type Strategy interface {
|
||||
NextVersion(git.Releases, VersionBump, NextVersionType) (string, error)
|
||||
}
|
||||
|
||||
type VersionBump conventionalcommits.VersionBump
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue