refactor: interface for versioning strategy (#109)

This commit is contained in:
Julian Tölle 2024-11-15 18:43:40 +01:00 committed by GitHub
parent 11f8403241
commit ef1d92cff0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 15 additions and 12 deletions

View file

@ -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