2008-12-26 16:18:47 +03:00
|
|
|
#!/usr/bin/perl
|
2011-08-03 16:10:39 +04:00
|
|
|
# Integration with other systems (MediaWiki, ViewVC, etc) config
|
2014-10-20 14:06:28 +04:00
|
|
|
# License: Dual-license MPL 1.1+ or GPL 3.0+
|
|
|
|
# Author(s): Vitaliy Filippov <vitalif@mail.ru>
|
2008-12-26 16:18:47 +03:00
|
|
|
|
2008-12-29 20:28:44 +03:00
|
|
|
package Bugzilla::Config::Integration;
|
2008-12-26 16:18:47 +03:00
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
2014-07-21 17:13:37 +04:00
|
|
|
our $sortkey = 910;
|
2008-12-26 16:18:47 +03:00
|
|
|
|
|
|
|
sub get_param_list
|
|
|
|
{
|
|
|
|
return (
|
2014-09-10 15:38:11 +04:00
|
|
|
{
|
|
|
|
name => 'gravatar_url',
|
|
|
|
type => 't',
|
|
|
|
default => 'http://www.gravatar.com/avatar/$MD5',
|
|
|
|
},
|
|
|
|
|
2008-12-26 16:18:47 +03:00
|
|
|
{
|
|
|
|
name => 'wiki_url',
|
2008-12-29 20:28:44 +03:00
|
|
|
type => 't',
|
2011-08-03 16:10:39 +04:00
|
|
|
default => '',
|
2008-12-26 16:18:47 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2016-02-29 00:40:22 +03:00
|
|
|
name => 'look_in_urls',
|
|
|
|
type => 'l',
|
2011-08-03 16:10:39 +04:00
|
|
|
default => '',
|
2008-12-26 16:18:47 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2011-08-03 16:10:39 +04:00
|
|
|
name => 'mediawiki_urls',
|
|
|
|
type => 'l',
|
|
|
|
default => '',
|
2011-01-28 16:32:40 +03:00
|
|
|
},
|
|
|
|
|
2009-01-26 21:11:47 +03:00
|
|
|
{
|
|
|
|
name => 'user_mailto',
|
|
|
|
type => 't',
|
|
|
|
default => 'mailto:',
|
|
|
|
},
|
2011-02-03 19:16:34 +03:00
|
|
|
|
|
|
|
{
|
|
|
|
name => 'ext_disable_refresh_views',
|
|
|
|
type => 'b',
|
|
|
|
default => 0,
|
|
|
|
},
|
2011-09-14 15:36:55 +04:00
|
|
|
|
2014-03-31 17:22:50 +04:00
|
|
|
{
|
|
|
|
name => 'see_also_url_regexes',
|
|
|
|
type => 'l',
|
|
|
|
default =>
|
|
|
|
'# Launchpad bug-tracker URLs
|
2015-01-15 17:13:28 +03:00
|
|
|
^(?i:https?://[^/]*launchpad\.net)/.*bugs?/(\d+) https://launchpad.net/bugs/$1
|
2014-03-31 17:22:50 +04:00
|
|
|
# Google Code bug-tracker URLs
|
2015-01-15 17:13:28 +03:00
|
|
|
^(?i:https?://code\.google\.com)/p/([^/]+)/issues/detail\?(?:[^&]+=[^&]*&)*id=(\d+) http://code.google.com/p/$1/issues/detail?id=$2
|
2014-03-31 17:22:50 +04:00
|
|
|
# Debian BTS URLs
|
2015-01-15 17:13:28 +03:00
|
|
|
^(?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
|
2014-03-31 17:22:50 +04:00
|
|
|
# URLs that look like Bugzilla
|
2015-01-15 17:13:28 +03:00
|
|
|
^(?i:(https?://[^\?#]*))/show_bug\.cgi\?(?:[^&]+=[^&]*&)*id=(\d+) $1/show_bug.cgi?id=$2'
|
2014-03-31 17:22:50 +04:00
|
|
|
},
|
2008-12-26 16:18:47 +03:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
2011-08-03 16:10:39 +04:00
|
|
|
__END__
|