Updated es_release_notes script to replace backticks with code tags

This commit is contained in:
Clinton Gormley 2014-07-28 16:32:06 +02:00
parent 1fe76b891b
commit e543a4dc60
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,7 @@ use warnings;
use HTTP::Tiny;
use IO::Socket::SSL 1.52;
use utf8;
my $Base_URL = 'https://api.github.com/repos/';
my $User_Repo = 'elasticsearch/elasticsearch/';
@ -85,6 +86,9 @@ sub dump_issues {
}
for my $issue (@$header_issues) {
my $title = $issue->{title};
$title=~s{`([^`]+)`}{<code>$1</code>}g
if $format eq 'html';
if ( $issue->{state} eq 'open' ) {
$title .= " [OPEN]";
}