Skip to content

Commit ea958fa

Browse files
committed
include 'X files in Y dirs' in IRC messages
1 parent 1f78e20 commit ea958fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/irc.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
short += ' ...' if short != commit['message']
2222
author = commit['author']['name']
2323
sha1 = commit['id']
24+
files = Array(commit['modified'])
25+
dirs = files.map { |file| File.dirname(file) }.uniq
2426
"\002#{repository}:\002 \00307#{branch}\003 \00303#{author}\003 * " +
25-
"\002#{sha1[0..6]}\002: #{short}"
27+
"\002#{sha1[0..6]}\002 (#{files.size} files in #{dirs.size} dirs): #{short}"
2628
end
2729

2830
if messages.size > 1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy