You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2014/01/06 21:06:36 UTC

svn commit: r1556009 - in /lucene/dev/branches/branch_4x: ./ lucene/ lucene/CHANGES.txt lucene/site/ lucene/site/changes/changes2html.pl

Author: sarowe
Date: Mon Jan  6 20:06:35 2014
New Revision: 1556009

URL: http://svn.apache.org/r1556009
Log:
LUCENE-5383: fix changes2html to link pull requests (merged trunk r1555998)

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/lucene/   (props changed)
    lucene/dev/branches/branch_4x/lucene/CHANGES.txt   (contents, props changed)
    lucene/dev/branches/branch_4x/lucene/site/   (props changed)
    lucene/dev/branches/branch_4x/lucene/site/changes/changes2html.pl

Modified: lucene/dev/branches/branch_4x/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/CHANGES.txt?rev=1556009&r1=1556008&r2=1556009&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/CHANGES.txt (original)
+++ lucene/dev/branches/branch_4x/lucene/CHANGES.txt Mon Jan  6 20:06:35 2014
@@ -59,6 +59,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

Modified: lucene/dev/branches/branch_4x/lucene/site/changes/changes2html.pl
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/site/changes/changes2html.pl?rev=1556009&r1=1556008&r2=1556009&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/site/changes/changes2html.pl (original)
+++ lucene/dev/branches/branch_4x/lucene/site/changes/changes2html.pl Mon Jan  6 20:06:35 2014
@@ -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+))