use our libraries and include pr categories
This commit is contained in:
@@ -20,6 +20,11 @@ type DrafterConfig struct {
|
||||
ConfigPath string
|
||||
}
|
||||
|
||||
type Category struct {
|
||||
Title string `yaml:"title"`
|
||||
Labels []string `yaml:"labels"`
|
||||
}
|
||||
|
||||
// NewFromInputs creates a new drafter config by using the action inputs and the github context
|
||||
func NewFromInputs(action *githubactions.Action) (*DrafterConfig, error) {
|
||||
actionCtx, err := action.Context()
|
||||
|
||||
@@ -14,7 +14,8 @@ type RepoConfig struct {
|
||||
// NameTemplate template for the release name
|
||||
NameTemplate string `mapstructure:"name-template"`
|
||||
// TagTemplate template for the release tag
|
||||
TagTemplate string `mapstructure:"tag-template"`
|
||||
TagTemplate string `mapstructure:"tag-template"`
|
||||
Categories []Category `yaml:"categories"`
|
||||
VersionResolver struct {
|
||||
Major struct {
|
||||
Labels []string
|
||||
|
||||
Reference in New Issue
Block a user