Skip to content

Commit a47a47f

Browse files
authored
Merge pull request #8187 from oscr/add-release-notes-stats
🌱 Add release notes pr statistics
2 parents 58ee8ac + 40261e4 commit a47a47f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hack/tools/release/notes.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ func run() int {
204204
// TODO Turn this into a link (requires knowing the project name + organization)
205205
fmt.Printf("Changes since %v\n---\n", commitRange)
206206

207+
fmt.Printf("## :chart_with_upwards_trend: Fun stats\n")
208+
fmt.Printf("- %d new commits merged\n", len(commits))
209+
fmt.Printf("- %d breaking changes :warning:\n", len(merges[warning]))
210+
fmt.Printf("- %d feature additions ✨\n", len(merges[features]))
211+
fmt.Printf("- %d bugs fixed 🐛\n", len(merges[bugs]))
212+
fmt.Println()
213+
207214
for _, key := range outputOrder {
208215
mergeslice := merges[key]
209216
if len(mergeslice) == 0 {

0 commit comments

Comments
 (0)