mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-02-08 02:37:04 +00:00
refactor: interface for versioning strategy
This commit is contained in:
parent
11f8403241
commit
f5ab3e143d
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