c2b9ae29371f142fe7f2da694f893f1365170bc2

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

fix(changelog): don't show more than 40 commits (#10345)

Fixes #10345

Diff

 1diff --git a/tools/changelog.sh b/tools/changelog.sh
 2index 7329a9526f9a68186fc878cb78f94af351cbdf73..ebdffba0a6b996408c52577f1bd03ee6bb0cd002 100755
 3--- a/tools/changelog.sh
 4+++ b/tools/changelog.sh
 5@@ -400,7 +400,7 @@ function main {
 6   # commit if $since is unset, in short hash form.
 7   command git rev-list --abbrev-commit --abbrev=7 ${since:+$since..}$until | while read hash; do
 8     # Truncate list on versions with a lot of commits
 9-    if [[ -z "$since" ]] && (( ++read_commits > 35 )); then
10+    if (( ++read_commits > 40 )); then
11       truncate=1
12       break
13     fi