-
Notifications
You must be signed in to change notification settings - Fork 10k
Expand file tree
/
Copy path.changie.yaml
More file actions
121 lines (107 loc) · 3.16 KB
/
.changie.yaml
File metadata and controls
121 lines (107 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Copyright IBM Corp. 2014, 2026
# "SPDX-License-Identifier: MPL-2.0"
# NOTE: Changelog entries are automatically sorted alphabetically by .ci/scripts/sort-changelog-entries.sh
# during GitHub Actions workflow execution (see .github/workflows/update-changelog.yml)
changesDir: .changes/6.x
unreleasedDir: unreleased
changelogPath: CHANGELOG.md
versionExt: md
versionFormat: '## {{.Version}} ({{.Time.Format "January 2, 2006"}})'
kindFormat: "{{ upper .Kind }}S:"
changeFormat: |-
{{/* Pull Request URL */}}
{{- $pr := .Custom.PullRequest }}
{{- define "pr" }}{{ printf " ([#%s](https://github.com/hashicorp/terraform-provider-aws/issues/%s))" . . }}{{ end }}
{{- $entries := compact (splitList "\n" .Custom.Impact) }}
{{- $last := last $entries }}
{{- $desc := .Custom.Body }}
{{- range $entries }}
{{- if eq . $last }}
{{- printf "* %s: %s" . $desc -}}{{ if $pr }}{{ template "pr" $pr }}{{ end -}}
{{ else }}
{{- printf "* %s: %s" . $desc }}{{ if $pr }}{{ template "pr" $pr }}{{ end }}
{{ end -}}
{{ end -}}
kinds:
- key: breaking-change
label: Breaking Change
skipBody: true
additionalChoices:
- &Impact
key: Impact
optional: false
type: block
label: |
What resource(s), data source(s), etc. does this affect? Where multiple
resources are impacted, separate them with a newline similar to:
-------------------------
provider
resource/aws_instance
data-source/aws_instance
- &Body
key: Body
label: Change entry body
type: string
optional: false
- &PullRequest
key: PullRequest
label: Pull Request Number (if known)
type: int
optional: true
minInt: 9999
- key: note
label: Note
skipBody: true
additionalChoices:
- *Impact
- *Body
- *PullRequest
- key: feature
format: "FEATURES:"
label: "Resource, Data Source, Ephemeral Resource, Function, List Resource"
skipBody: true
changeFormat: |-
{{- printf "* **%s**: `%s`" .Custom.NewType .Custom.Name }}
{{- with .Custom.PullRequest }}
{{- printf " ([#%s](https://github.com/hashicorp/terraform-provider-aws/issues/%s))" . . -}}
{{ end }}
additionalChoices:
- key: NewType
label: What type of functionality are you adding?
type: enum
optional: false
enumOptions:
- New Resource
- New Data Source
- New Ephemeral Resource
- New Function
- New List Resource
- key: Name
label: Name of the Resource, Data Source, etc.
type: string
optional: false
- *PullRequest
- key: enhancement
label: Enhancement
skipBody: true
additionalChoices:
- *Impact
- *Body
- *PullRequest
- key: bug
format: "BUG FIXES:"
label: Bug
skipBody: true
additionalChoices:
- *Impact
- *Body
- *PullRequest
newlines:
afterKind: 1
afterChangelogVersion: 1
beforeKind: 1
endOfVersion: 1
replacements:
- path: version/VERSION
find: '[0-9]\.(?:[0-9])+\.(?:[0-9])+'
replace: "{{ .VersionNoPrefix }}"