1
0
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:
Carlos A Becker 2023-01-07 18:37:44 -03:00
parent a1477f9370
commit 8e3567ed0a
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
4 changed files with 31 additions and 31 deletions

View File

@ -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"},
},
},

View File

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

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

@ -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": {