Skip to content

Commit

Permalink
Merge pull request #6074 from mpagot/jira_url
Browse files Browse the repository at this point in the history
Update SUSE Jira url
  • Loading branch information
mergify[bot] authored Dec 2, 2024
2 parents 35e1cc4 + 960618b commit 5a51b93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/OpenQA/Utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ BEGIN {
gh => 'https://github.com/',
kde => 'https://bugs.kde.org/show_bug.cgi?id=',
fdo => 'https://bugs.freedesktop.org/show_bug.cgi?id=',
jsc => 'https://jira.suse.de/browse/',
jsc => 'https://jira.suse.com/browse/',
pio => 'https://pagure.io/',
ggo => 'https://gitlab.gnome.org/',
gfs => 'https://gitlab.com/fedora/sigs/',
Expand Down
2 changes: 1 addition & 1 deletion t/16-markdown.t
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ subtest 'bugrefs to markdown' => sub {
'<a href="https://bugs.freedesktop.org/show_bug.cgi?id=9876" title="Bug referenced: fdo#9876">fdo#9876</a>',
'right markdown for fdo';
is bugref_to_html('jsc#9876'),
'<a href="https://jira.suse.de/browse/9876" title="Bug referenced: jsc#9876">jsc#9876</a>',
'<a href="https://jira.suse.com/browse/9876" title="Bug referenced: jsc#9876">jsc#9876</a>',
'right markdown for jsc';
is bugref_to_html('pio#foo#1234'),
'<a href="https://pagure.io/foo/issue/1234" title="Bug referenced: pio#foo#1234">pio#foo#1234</a>',
Expand Down
4 changes: 2 additions & 2 deletions t/16-utils.t
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ like bugref_to_href('bsc#2345 poo#3456 and more'),
like bugref_to_href('boo#2345,poo#3456'),
qr{a href="https://bugzilla.opensuse.org/show_bug.cgi\?id=2345">boo\#2345</a>,<a href=.*3456.*},
'interpunctation is not consumed by href';
is bugref_to_href('jsc#SLE-3275'), '<a href="https://jira.suse.de/browse/SLE-3275">jsc#SLE-3275</a>';
is href_to_bugref('https://jira.suse.de/browse/FOOBAR-1234'), 'jsc#FOOBAR-1234', 'jira tickets url to bugref';
is bugref_to_href('jsc#SLE-3275'), '<a href="https://jira.suse.com/browse/SLE-3275">jsc#SLE-3275</a>';
is href_to_bugref('https://jira.suse.com/browse/FOOBAR-1234'), 'jsc#FOOBAR-1234', 'jira tickets url to bugref';
is href_to_bugref('https://pagure.io/foo/issue/1234'), 'pio#foo#1234', 'pagure.io (no group) url to bugref';
is href_to_bugref('https://pagure.io/foo/bar/issue/1234'), 'pio#foo/bar#1234', 'pagure.io (with group) url to bugref';
is href_to_bugref('https://gitlab.gnome.org/GNOME/foo/-/issues/1234'), 'ggo#GNOME/foo#1234',
Expand Down

0 comments on commit 5a51b93

Please sign in to comment.