We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c018d8 commit 59dce79Copy full SHA for 59dce79
lib/slack.ml
@@ -250,8 +250,8 @@ let generate_push_notification notification channel =
250
sprintf "`<%s|%s>` %s - %s" url (git_short_sha_hash id) title author.name
251
in
252
(* truncation point depends on line length, but 10 lines seems okay for most cases *)
253
- let num_dropped = 10 in
254
- let dropped = num_commits - num_dropped in
+ let num_shown = 10 in
+ let dropped = num_commits - num_shown in
255
if dropped > 0 then
256
List.rev_map_append (List.drop (List.rev commits) dropped) [ sprintf "+%d more..." dropped ] ~f:pp_commit
257
else List.map commits ~f:pp_commit
0 commit comments