2019-06-15 23:03:27 +02:00
|
|
|
package shared
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/Masterminds/semver"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
//ReleaseVersion struct
|
|
|
|
|
type ReleaseVersion struct {
|
|
|
|
|
Last ReleaseVersionEntry
|
|
|
|
|
Next ReleaseVersionEntry
|
|
|
|
|
Branch string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//ReleaseVersionEntry struct
|
|
|
|
|
type ReleaseVersionEntry struct {
|
2019-06-20 00:46:59 +02:00
|
|
|
Commit string
|
|
|
|
|
Draft bool
|
|
|
|
|
*semver.Version
|
2019-06-15 23:03:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//GeneratedChangelog struct
|
|
|
|
|
type GeneratedChangelog struct {
|
|
|
|
|
Title string
|
|
|
|
|
Content string
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-20 00:46:59 +02:00
|
|
|
//ChangelogTemplateConfig struct
|
2019-06-15 23:03:27 +02:00
|
|
|
type ChangelogTemplateConfig struct {
|
|
|
|
|
CommitURL string
|
|
|
|
|
CompareURL string
|
|
|
|
|
Hash string
|
|
|
|
|
Version string
|
|
|
|
|
}
|