Skip to content

Commit

Permalink
[api][webui] Add Linux Foundation IssueTracker
Browse files Browse the repository at this point in the history
Fixes #3135.
  • Loading branch information
ChrisBr committed Jun 28, 2017
1 parent a2ecc5f commit f44312f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class AddLinuxFoundationIssueTracker < ActiveRecord::Migration[5.1]
def up
IssueTracker.where(name: 'lf').first_or_create(description: 'Linux Foundation Bugzilla',
kind: 'bugzilla',
regex: 'lf#(\d+)',
url: 'https://developerbugs.linuxfoundation.org',
label: 'lf#@@@', show_url: 'https://developerbugs.linuxfoundation.org/show_bug.cgi?id=@@@')
end

def down
IssueTracker.find_by(name: 'lf').destroy
end
end
5 changes: 5 additions & 0 deletions src/api/db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -312,3 +312,8 @@
regex: 'osc#(\d+)',
url: 'https://api.github.com/repos/openSUSE/osc/issues',
label: 'osc#@@@', show_url: 'https://github.com/openSUSE/osc/issues/@@@')
IssueTracker.where(name: 'lf').first_or_create(description: 'Linux Foundation Bugzilla',
kind: 'bugzilla',
regex: 'lf#(\d+)',
url: 'https://developerbugs.linuxfoundation.org',
label: 'lf#@@@', show_url: 'https://developerbugs.linuxfoundation.org/show_bug.cgi?id=@@@')
1 change: 1 addition & 0 deletions src/api/db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,7 @@ INSERT INTO `schema_migrations` (version) VALUES
('20170614083014'),
('20170621100321'),
('20170621103748'),
('20170628115727'),
('21'),
('22'),
('23'),
Expand Down

0 comments on commit f44312f

Please sign in to comment.