Bug 1088399 - Add support for Github pull requests in See Also field. r=gerv, a=glob.
git-svn-id: svn://10.0.0.236/trunk@265634 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a270621669
commit
d7b9945e24
@ -1 +1 @@
|
||||
9181
|
||||
9182
|
||||
@ -1 +1 @@
|
||||
d2685d0a7e2d75e3f334dc18babfcc53f53aa973
|
||||
1d68680f1a510aa5fd7844dca3f8a681db334761
|
||||
@ -22,8 +22,10 @@ sub should_handle {
|
||||
|
||||
# GitHub issue URLs have only one form:
|
||||
# https://github.com/USER_OR_TEAM_OR_ORGANIZATION_NAME/REPOSITORY_NAME/issues/111
|
||||
# GitHub pull request URLs have only one form:
|
||||
# https://github.com/USER_OR_TEAM_OR_ORGANIZATION_NAME/REPOSITORY_NAME/pull/111
|
||||
return (lc($uri->authority) eq 'github.com'
|
||||
and $uri->path =~ m|^/[^/]+/[^/]+/issues/\d+$|) ? 1 : 0;
|
||||
and $uri->path =~ m!^/[^/]+/[^/]+/(?:issues|pull)/\d+$!) ? 1 : 0;
|
||||
}
|
||||
|
||||
sub _check_value {
|
||||
|
||||
@ -290,7 +290,7 @@
|
||||
<li>A ticket in a Trac installation.</li>
|
||||
<li>A b[% %]ug in a MantisBT installation.</li>
|
||||
<li>A b[% %]ug on sourceforge.net.</li>
|
||||
<li>An issue on github.com.</li>
|
||||
<li>An issue/pull request on github.com.</li>
|
||||
[% Hook.process('bug_url_invalid_tracker') %]
|
||||
</ul>
|
||||
[% END %]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user