Class: Bicho::Plugins::Aliases

Inherits:
Object
  • Object
show all
Defined in:
lib/bicho/plugins/aliases.rb

Overview

This plugin allows to specify shortcuts for bugzilla urls

Instance Method Summary collapse

Instance Method Details

#transform_site_url_hook(url, _logger) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/bicho/plugins/aliases.rb', line 7

def transform_site_url_hook(url, _logger)
  case url.to_s
  when 'bko', 'kernel' then 'https://bugzilla.kernel.org'
  when 'bgo', 'gnome' then 'https://bugzilla.gnome.org'
  when 'kde' then 'https://bugzilla.kde.org'
  else url
  end
end