Skip to content

Commit beb7aaa

Browse files
authored
feat: support new-ephemeral entry types (#36)
A `new-ephemeral` entry type will allow authors to publish changelog entries for new ephemeral resources in the same manner as resources and data sources. - https://developer.hashicorp.com/terraform/plugin/framework/ephemeral-resources
1 parent 4d68c58 commit beb7aaa

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

cmd/changelog-build/changelog.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ BREAKING CHANGES:
1919
{{ end -}}
2020
{{- end -}}
2121

22-
{{- $features := combineTypes .NotesByType.feature (index .NotesByType "new-resource" ) (index .NotesByType "new-datasource") (index .NotesByType "new-data-source") (index .NotesByType "new-function" ) -}}
22+
{{- $features := combineTypes .NotesByType.feature (index .NotesByType "new-resource" ) (index .NotesByType "new-datasource") (index .NotesByType "new-data-source") (index .NotesByType "new-function" ) (index .NotesByType "new-ephemeral" ) -}}
2323
{{- if $features }}
2424
FEATURES:
2525
{{range $features | sort -}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{{- define "note" -}}
2-
{{if eq "new-resource" .Type}}**New Resource:** {{else if eq "new-datasource" .Type}}**New Data Source:** {{else if eq "new-function" .Type}}**New Function:** {{ end }}{{.Body}} ([GH-{{- .Issue -}}])
2+
{{if eq "new-resource" .Type}}**New Resource:** {{else if eq "new-datasource" .Type}}**New Data Source:** {{else if eq "new-function" .Type}}**New Function:** {{else if eq "new-ephemeral" .Type}}**New Ephemeral Resource:** {{ end }}{{.Body}} ([GH-{{- .Issue -}}])
33
{{- end -}}

cmd/changelog-entry/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ The type parameter can be one of the following:
1010
* enhancement
1111
* new-resource
1212
* new-datasource
13+
* new-ephemeral
1314
* new-function
1415
* deprecation
1516
* breaking-change

cmd/changelog-pr-body-check/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ following types of entries:
1414
* enhancement
1515
* new-resource
1616
* new-datasource
17+
* new-ephemeral
1718
* new-function
1819
* deprecation
1920
* breaking-change

entry.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var TypeValues = []string{
2727
"note",
2828
"new-resource",
2929
"new-datasource",
30+
"new-ephemeral",
3031
"new-function",
3132
"deprecation",
3233
"breaking-change",

0 commit comments

Comments
 (0)