File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -264,10 +264,10 @@ let generate_push_notification notification channel =
264
264
let title = first_line message in
265
265
sprintf " `<%s|%s>` %s - %s" url (git_short_sha_hash id) title author.name
266
266
in
267
- (* truncation point depends on line length, but 10 lines seems okay for most cases *)
268
- let num_shown = 10 in
267
+ (* truncation point depends on line length, but 7+3 lines seems okay for most cases *)
268
+ let num_shown = 7 in
269
269
let dropped = num_commits - num_shown in
270
- if dropped > 0 then begin
270
+ if dropped > 3 then begin
271
271
let h, commits' = List. split_n commits (num_shown / 2 ) in
272
272
let t = List. drop commits' dropped in
273
273
List. concat [ List. map ~f: pp_commit h; [ sprintf " +%d more..." dropped ]; List. map ~f: pp_commit t ]
You can’t perform that action at this time.
0 commit comments