@@ -147,13 +147,14 @@ sub said {
147147 push @return , $issue -> {error };
148148 next match;
149149 }
150- push @return , sprintf " %s \cC 43%d \cC (\cC 59%s \cC ) by \cB %s \cB - \cC 73%s \cC %s \{ %s \cC\} " ,
150+ push @return , sprintf " %s \cC 43%d \cC (\cC 59%s \cC ) by \cB %s \cB - \cC 73%s \cC %s %s \{ %s \cC\} " ,
151151 (exists $issue -> {pull_request } ? " \cC 29Pull request" : " \cC 52Issue" ),
152152 $thingnum ,
153153 $issue -> {title },
154154 _dehih($issue -> {user }{login }),
155155 makeashorterlink($issue -> {html_url }),
156156 ($issue -> {labels }&&@{$issue -> {labels }}?" [" .(join " ," ,map {$_ -> {name }}@{$issue -> {labels }})." ]" :" " ),
157+ ($issue -> {milestone } ? " MS:\cB $issue ->{milestone}{title}\cB " : ($pr ?$self -> _pr_branch($ng , $pr ):" " )),
157158$pr &&$pr -> {merged_at }?" \cC 46merged on " .($pr -> {merged_at }=~s / T.*// r ):
158159$issue -> {closed_at }?" \cC 55closed on " .($issue -> {closed_at }=~s / T.*// r ):" \cC 52" .$issue -> {state }." since " .($issue -> {created_at }=~s / T.*// r );
159160 }
@@ -182,6 +183,7 @@ $issue->{closed_at}?"\cC55closed on ".($issue->{closed_at}=~s/T.*//r):"\cC52".$i
182183 if ($commit -> {html_url }) {
183184 $commit -> {commit }{html_url } = $commit -> {html_url };
184185 }
186+ $commit -> {commit }{sha } //= $commit -> {sha };
185187 $commit = $commit -> {commit };
186188 }
187189 if ($commit && !exists $commit -> {error }) {
@@ -192,11 +194,13 @@ $issue->{closed_at}?"\cC55closed on ".($issue->{closed_at}=~s/T.*//r):"\cC52".$i
192194 # might perhaps change in future, so play it safe:
193195# $url = "https://github.com$url" unless $url =~ /^http/;
194196# $url =~ s{https://api.github.com/repos/(.*?)/commits/}{https://github.com/$1/commit/};
195- push @return , sprintf " Commit \cC 43$thingnum \cC (\cC 59%s \cC ) by \cB %s \cB on %s - \cC 73%s " ,
197+ push @return , sprintf " Commit \cC 43$thingnum \cC (\cC 59%s \cC ) by \cB %s \cB on %s - \cC 73%s \cC %s " ,
196198 $title ,
197199 _dehih($commit -> {author }{login }||$commit -> {committer }{login }||$commit -> {author }{name }||$commit -> {committer }{name }),
198200 ($commit -> {author }{date }=~s / T.*// r ),
199- makeashorterlink($url );
201+ makeashorterlink($url ),
202+ $self -> _commit_branch($commit , $commit -> {sha }),
203+ ;
200204 } else {
201205 # We purposefully don't show a message on IRC here, as we guess
202206 # what might be a SHA, so we could be annoying saying that we
@@ -364,13 +368,14 @@ $issue->{closed_at}?"\cC55closed on ".($issue->{closed_at}=~s/T.*//r):"\cC52".$i
364368 push @return , $issue -> {error };
365369 next match;
366370 }
367- push @return , sprintf " %s \cC 43%d \cC (\cC 59%s \cC ) by \cB %s \cB - \cC 73%s \cC %s \{ %s \cC\} " ,
371+ push @return , sprintf " %s \cC 43%d \cC (\cC 59%s \cC ) by \cB %s \cB - \cC 73%s \cC %s %s \{ %s \cC\} " ,
368372 (exists $issue -> {pull_request } ? " \cC 29Pull request" : " \cC 52Issue" ),
369373 $thingnum ,
370374 $issue -> {title },
371375 _dehih($issue -> {user }{login }),
372376 $project ,
373377 ($issue -> {labels }&&@{$issue -> {labels }}?" [" .(join " ," ,map {$_ -> {name }}@{$issue -> {labels }})." ]" :" " ),
378+ ($issue -> {milestone } ? " MS:\cB $issue ->{milestone}{title}\cB " : ($pr ?$self -> _pr_branch($ng , $pr ):" " )),
374379$pr &&$pr -> {merged_at }?" \cC 46merged on " .($pr -> {merged_at }=~s / T.*// r ):
375380$issue -> {closed_at }?" \cC 55closed on " .($issue -> {closed_at }=~s / T.*// r ):" \cC 52" .$issue -> {state }." since " .($issue -> {created_at }=~s / T.*// r );
376381 }
@@ -383,11 +388,13 @@ $issue->{closed_at}?"\cC55closed on ".($issue->{closed_at}=~s/T.*//r):"\cC52".$i
383388 my $title = ( split /\n+/, $commit -> {message } )[0];
384389 my $url = $commit -> {html_url };
385390
386- push @return , sprintf " Commit \cC 43$thingnum \cC (\cC 59%s \cC ) by \cB %s \cB on %s - \cC 73%s " ,
391+ push @return , sprintf " Commit \cC 43$thingnum \cC (\cC 59%s \cC ) by \cB %s \cB on %s - \cC 73%s \cC %s " ,
387392 $title ,
388393 _dehih($commit -> {author }{login }||$commit -> {committer }{login }||$commit -> {author }{name }||$commit -> {committer }{name }),
389394 ($commit -> {author }{date }=~s / T.*// r ),
390- $project ;
395+ $project ,
396+ $self -> _commit_branch($commit , $commit -> {sha }),
397+ ;
391398 } else {
392399 # We purposefully don't show a message on IRC here, as we guess
393400 # what might be a SHA, so we could be annoying saying that we
0 commit comments