mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-18 03:56:52 +02:00
refactor: rename ChangeLogGroup to ChangelogGroup
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
a1477f9370
commit
8e3567ed0a
@ -681,7 +681,7 @@ func TestGroup(t *testing.T) {
|
||||
ctx := context.New(config.Project{
|
||||
Dist: folder,
|
||||
Changelog: config.Changelog{
|
||||
Groups: []config.ChangeLogGroup{
|
||||
Groups: []config.ChangelogGroup{
|
||||
{
|
||||
Title: "Bots",
|
||||
Regexp: ".*bot.*",
|
||||
@ -729,7 +729,7 @@ func TestGroupBadRegex(t *testing.T) {
|
||||
ctx := context.New(config.Project{
|
||||
Dist: folder,
|
||||
Changelog: config.Changelog{
|
||||
Groups: []config.ChangeLogGroup{
|
||||
Groups: []config.ChangelogGroup{
|
||||
{
|
||||
Title: "Something",
|
||||
Regexp: "^.*feat[a-z", // unterminated regex
|
||||
@ -785,7 +785,7 @@ func TestChangelogFormat(t *testing.T) {
|
||||
return config.Project{
|
||||
Changelog: config.Changelog{
|
||||
Use: u,
|
||||
Groups: []config.ChangeLogGroup{
|
||||
Groups: []config.ChangelogGroup{
|
||||
{Title: "catch-all"},
|
||||
},
|
||||
},
|
||||
|
@ -829,12 +829,12 @@ type Changelog struct {
|
||||
Sort string `yaml:"sort,omitempty" json:"sort,omitempty" jsonschema:"enum=asc,enum=desc,enum=,default="`
|
||||
Skip bool `yaml:"skip,omitempty" json:"skip,omitempty"` // TODO(caarlos0): rename to Disable to match other pipes
|
||||
Use string `yaml:"use,omitempty" json:"use,omitempty" jsonschema:"enum=git,enum=github,enum=github-native,enum=gitlab,default=git"`
|
||||
Groups []ChangeLogGroup `yaml:"groups,omitempty" json:"groups,omitempty"`
|
||||
Groups []ChangelogGroup `yaml:"groups,omitempty" json:"groups,omitempty"`
|
||||
Abbrev int `yaml:"abbrev,omitempty" json:"abbrev,omitempty"`
|
||||
}
|
||||
|
||||
// ChangeLogGroup holds the grouping criteria for the changelog.
|
||||
type ChangeLogGroup struct {
|
||||
// ChangelogGroup holds the grouping criteria for the changelog.
|
||||
type ChangelogGroup struct {
|
||||
Title string `yaml:"title,omitempty" json:"title,omitempty"`
|
||||
Regexp string `yaml:"regexp,omitempty" json:"regexp,omitempty"`
|
||||
Order int `yaml:"order,omitempty" json:"order,omitempty"`
|
||||
|
18
www/docs/static/schema-pro.json
generated
vendored
18
www/docs/static/schema-pro.json
generated
vendored
@ -359,14 +359,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"skip": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
"type": "boolean"
|
||||
},
|
||||
"gobinary": {
|
||||
"type": "string"
|
||||
@ -2928,7 +2921,14 @@
|
||||
"type": "string"
|
||||
},
|
||||
"chat_id": {
|
||||
"type": "integer"
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
|
32
www/docs/static/schema.json
generated
vendored
32
www/docs/static/schema.json
generated
vendored
@ -450,21 +450,6 @@
|
||||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
},
|
||||
"ChangeLogGroup": {
|
||||
"properties": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"regexp": {
|
||||
"type": "string"
|
||||
},
|
||||
"order": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
},
|
||||
"Changelog": {
|
||||
"properties": {
|
||||
"filters": {
|
||||
@ -494,7 +479,7 @@
|
||||
},
|
||||
"groups": {
|
||||
"items": {
|
||||
"$ref": "#/$defs/ChangeLogGroup"
|
||||
"$ref": "#/$defs/ChangelogGroup"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
@ -505,6 +490,21 @@
|
||||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
},
|
||||
"ChangelogGroup": {
|
||||
"properties": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"regexp": {
|
||||
"type": "string"
|
||||
},
|
||||
"order": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
},
|
||||
"Checksum": {
|
||||
"properties": {
|
||||
"name_template": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user