Commit 3b09e55
committed
fix(tools): count important commits against the changelog fold limit
The fold limit only sliced normal commits, so important commits rendered
above the fold without consuming any of the budget. A section with 4
important commits and a limit of 5 showed all 5 normal commits too (9
total) and never emitted the Show all details block.
Subtract the important count from the limit so it caps total above-fold
items, clamped at 0 so important commits are still never collapsed when
they alone meet or exceed the limit.1 parent 0e59278 commit 3b09e55
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
0 commit comments