LUCENE-5383: fix changes2html to link pull requests

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1555998 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Rowe 2014-01-06 19:51:50 +00:00
parent b575a117fa
commit 20506cd63e
2 changed files with 6 additions and 0 deletions

View File

@ -114,6 +114,8 @@ Build
of failing. It also instructs the user, how to run on SVN 1.8 working
copies. (Robert Muir, Uwe Schindler)
* LUCENE-5383: fix changes2html to link pull requests (Steve Rowe)
Bug fixes
* LUCENE-5285: Improved highlighting of multi-valued fields with

View File

@ -27,6 +27,7 @@ use warnings;
# JIRA REST API documentation: <http://docs.atlassian.com/jira/REST/latest/>
my $project_info_url = 'https://issues.apache.org/jira/rest/api/2/project';
my $jira_url_prefix = 'http://issues.apache.org/jira/browse/';
my $github_pull_request_prefix = 'https://github.com/apache/lucene-solr/pull/';
my $bugzilla_url_prefix = 'http://issues.apache.org/bugzilla/show_bug.cgi?id=';
my $month_regex = &setup_month_regex;
my %month_nums = &setup_month_nums;
@ -554,6 +555,9 @@ for my $rel (@releases) {
# Link Lucene XXX, SOLR XXX and INFRA XXX to JIRA
$item =~ s{((LUCENE|SOLR|INFRA)\s+(\d{3,}))}
{<a href="${jira_url_prefix}\U$2\E-$3">$1</a>}gi;
# Link "[ github | gh ] pull request [ # ] X+" to Github pull request
$item =~ s{((?:(?:(?:github|gh)\s+)?pull\s+request\s*(?:\#?\s*)?|gh-)(\d+))}
{<a href="${github_pull_request_prefix}$2">$1</a>}gi;
if ($product eq 'LUCENE') {
# Find single Bugzilla issues
$item =~ s~((?i:bug|patch|issue)\s*\#?\s*(\d+))