Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Report all authors when we don't print full commits
  • Loading branch information
zoffixznet committed Jan 31, 2017
1 parent 5f7b13d commit f3eec49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/Geth/GitHub/Hooks.pm6
Expand Up @@ -54,7 +54,6 @@ class Event {
}

class Event::Push is Event {
has $.pusher;
has $.sha-before;
has $.sha-after;
has @.commits;
Expand Down Expand Up @@ -95,7 +94,6 @@ sub make-event ($e, :$event, :$query) {
when 'push' {
Event::Push.new:
|%basics,
pusher => $e<pusher><name>,
sha-before => $e<before>,
sha-after => $e<after>,
commits => $e<commits>.map: -> $commit {
Expand Down
5 changes: 3 additions & 2 deletions lib/Geth/Plugin/GitHub.pm6
Expand Up @@ -89,8 +89,9 @@ sub make-text ($e) {
!! '{' ~ @branches.join(',') ~ '}'
),
Δ(:style<bold>, "$e.commits.elems() commits ")
~ "pushed by &karma-name($e.pusher)",
(
~ "pushed by " ~(
$e.commits».author.unique».&karma-name.join(", ").substr(0,1000)
), (
$e.commits.map: *.&make-short-commit-message: $e
if $e.commits.elems < 10
),
Expand Down

0 comments on commit f3eec49

Please sign in to comment.