Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SUSE Jira url #6074

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the %BUGURLS hash below for the reverse direction should be extended (like it was done for bsc) so old URLs are still resolved.

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
Loading