Skip to content

Commit 197afbe

Browse files
committed
Bug 1264207 - add support for the hellosplat tracker to 'see also'
1 parent 33f6155 commit 197afbe

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

Bugzilla/BugUrl.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ use constant SUB_CLASSES => qw(
7575
Bugzilla::BugUrl::Aha
7676
Bugzilla::BugUrl::WebCompat
7777
Bugzilla::BugUrl::ServiceNow
78+
Bugzilla::BugUrl::Splat
7879
);
7980

8081
###############################

Bugzilla/BugUrl/Splat.pm

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
#
5+
# This Source Code Form is "Incompatible With Secondary Licenses", as
6+
# defined by the Mozilla Public License, v. 2.0.
7+
8+
package Bugzilla::BugUrl::Splat;
9+
use strict;
10+
use base qw(Bugzilla::BugUrl);
11+
12+
sub should_handle {
13+
my ($class, $uri) = @_;
14+
return $uri =~ m#^https?://hellosplat\.com/s/beanbag/tickets/\d+#;
15+
}
16+
17+
sub _check_value {
18+
my ($class, $uri) = @_;
19+
$uri = $class->SUPER::_check_value($uri);
20+
$uri->scheme('https'); # force https
21+
return $uri;
22+
}
23+
24+
1;

template/en/default/global/user-error.html.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@
352352
<li>An Aha feature on aha.io.</li>
353353
<li>An issue on webcompat.com.</li>
354354
<li>A request on ServiceNow.</li>
355+
<li>A ticket on hellosplat.com.</li>
355356
</ul>
356357
[% ELSIF reason == 'id' %]
357358
There is no valid [% terms.bug %] id in that URL.

0 commit comments

Comments
 (0)