bugzilla-4intranet/Bugzilla/Config/Integration.pm

94 lines
1.9 KiB
Perl

#!/usr/bin/perl
# Integration with other systems (MediaWiki, ViewVC, etc) config
package Bugzilla::Config::Integration;
use strict;
use warnings;
use Bugzilla::Config::Common;
sub get_param_list
{
return (
{
name => 'wiki_url',
type => 't',
default => '',
},
{
name => 'viewvc_url',
type => 't',
default => '',
},
{
name => 'mediawiki_urls',
type => 'l',
default => '',
},
{
name => 'user_mailto',
type => 't',
default => 'mailto:',
},
{
name => 'ext_disable_refresh_views',
type => 'b',
default => 0,
},
# FIXME move following to custishacks...
{
name => 'login_urlbase_redirects',
type => 'l',
default => '',
},
{
name => 'sm_dotproject_wsdl_url',
type => 't',
default => '',
},
{
name => 'sm_dotproject_login',
type => 't',
default => '',
},
{
name => 'sm_dotproject_password',
type => 't',
default => '',
},
{
name => 'sm_dotproject_ws_user',
type => 't',
default => '',
},
{
name => 'see_also_url_regexes',
type => 'l',
default =>
'# Launchpad bug-tracker URLs
^(?^i:https?://[^/]*launchpad\.net)/.*bugs?/(\d+) https://launchpad.net/bugs/$1
# Google Code bug-tracker URLs
^(?^i:https?://code\.google\.com)/p/([^/]+)/issues/detail\?(?:[^&]+=[^&]*&)*id=(\d+) http://code.google.com/p/$1/issues/detail?id=$2
# Debian BTS URLs
^(?^i:https?://bugs\.debian\.org)/cgi-bin/bugreport\.cgi\?(?:[^&]+=[^&]*&)*bug=(\d+) http://bugs.debian.org/$1
^(?^i:https?://bugs\.debian\.org)/(\d+) http://bugs.debian.org/$1
# URLs that look like Bugzilla
^(?^i:https?://([^/]*))/show_bug\.cgi\?(?:[^&]+=[^&]*&)*id=(\d+) http://$1/show_bug.cgi?id=$2'
},
);
}
1;
__END__