Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .chloggen/alphabetical-changelog-entries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. crosslink)
component: chloggen

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Sort changelog entries lexicographically based on their component field

# One or more tracking issues related to the change
issues: [1276]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Changelog

<!-- next version -->

## v0.45.0

### 💡 Enhancements 💡

- `receiver/a`: Some change (#1)
- `receiver/aa`: Some other change for aa (#2)
- `receiver/b`: Some other change (#3)
- `receiver/bb`: One more bb change (#4)

## v0.44.0

### 🛑 Breaking changes 🛑

- `prometheusexporter`: Automatically rename metrics with units to follow Prometheus naming convention (#8950)

### 💡 Enhancements 💡

- `filterprocessor`: Ability to filter `Spans` (#6341)
- `flinkmetricsreceiver`: add attribute values to metadata #11520

### 🧰 Bug fixes 🧰

- `redactionprocessor`: respect allow_all_keys configuration (#11542)
5 changes: 5 additions & 0 deletions chloggen/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"fmt"
"os"
"path/filepath"
"slices"
"strings"

"github.com/spf13/cobra"
Expand Down Expand Up @@ -48,6 +49,10 @@ func updateCmd() *cobra.Command {

for changeLogKey, entries := range entriesByChangelog {

slices.SortFunc(entries, func(a, b *chlog.Entry) int {
return strings.Compare(a.Component, b.Component)
})

if componentFilter != "" {
filteredEntries := make([]*chlog.Entry, 0, len(entries))
for _, e := range entries {
Expand Down
30 changes: 30 additions & 0 deletions chloggen/cmd/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,36 @@ func TestUpdate(t *testing.T) {
},
componentFilter: "receiver/foob",
},
{
name: "all_change_types_alphabetical",
entries: []*chlog.Entry{
{
ChangeType: "enhancement",
Component: "receiver/a",
Note: "Some change",
Issues: []int{1},
},
{
ChangeType: "enhancement",
Component: "receiver/bb",
Note: "One more bb change",
Issues: []int{4},
},
{
ChangeType: "enhancement",
Component: "receiver/b",
Note: "Some other change",
Issues: []int{3},
},
{
ChangeType: "enhancement",
Component: "receiver/aa",
Note: "Some other change for aa",
Issues: []int{2},
},
},
version: "v0.45.0",
},
}

for _, tc := range tests {
Expand Down
Loading