Skip to content

Commit daeb52a

Browse files
evgeniekohl
authored andcommitted
add links to issues in overview
1 parent 144b019 commit daeb52a

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ foreman:
1414
rpm: true
1515
translations: true
1616
github_team: 'theforeman/ansible'
17+
redmine: true
1718
satellite: true
1819
tests:
1920
github:
@@ -24,6 +25,7 @@ foreman:
2425
rpm: true
2526
translations: true
2627
github_team: 'theforeman/azure'
28+
redmine: azurerm
2729
satellite: true
2830
tests:
2931
github:
@@ -33,6 +35,7 @@ foreman:
3335
rpm: true
3436
translations: true
3537
github_team: 'theforeman/bootdisk'
38+
redmine: true
3639
satellite: true
3740
tests:
3841
github:
@@ -60,6 +63,7 @@ foreman:
6063
rpm: true
6164
translations: true
6265
github_team: 'theforeman/discovery'
66+
redmine: true
6367
satellite: true
6468
tests:
6569
github:
@@ -97,6 +101,7 @@ foreman:
97101
rpm: true
98102
translations: true
99103
github_team: 'theforeman/google'
104+
redmine: foreman_google
100105
satellite: true
101106
tests:
102107
github:
@@ -133,6 +138,7 @@ foreman:
133138
translations: true
134139
github_org: 'Katello'
135140
rpm_directory: 'katello'
141+
redmine: true
136142
satellite: true
137143
tests:
138144
github:
@@ -149,6 +155,7 @@ foreman:
149155
rpm: true
150156
translations: true
151157
github_team: 'theforeman/kubevirt'
158+
redmine: true
152159
satellite: true
153160
tests:
154161
github:
@@ -157,6 +164,7 @@ foreman:
157164
rpm: true
158165
translations: true
159166
github_team: 'theforeman/foreman_leapp'
167+
redmine: true
160168
satellite: true
161169
tests:
162170
github:
@@ -196,6 +204,7 @@ foreman:
196204
rpm: true
197205
translations: true
198206
github_team: 'theforeman/openscap'
207+
redmine: foreman_openscap
199208
satellite: true
200209
tests:
201210
github:
@@ -211,6 +220,7 @@ foreman:
211220
rpm: true
212221
translations: true
213222
github_team: 'theforeman/puppet'
223+
redmine: foreman_puppet
214224
satellite: true
215225
tests:
216226
github:
@@ -230,6 +240,7 @@ foreman:
230240
puppet_acceptance_tests: 'foreman_rex_cockpit'
231241
translations: true
232242
github_team: 'theforeman/remote-execution'
243+
redmine: foreman_remote_execution
233244
satellite: true
234245
tests:
235246
github:
@@ -266,6 +277,7 @@ foreman:
266277
rpm: true
267278
translations: true
268279
github_team: 'theforeman/salt'
280+
redmine: true
269281
tests:
270282
github:
271283
Ruby: ruby_tests.yml
@@ -283,6 +295,7 @@ foreman:
283295
rpm: true
284296
translations: true
285297
github_team: 'theforeman/foreman-setup'
298+
redmine: foreman_setup
286299
snapshot_management:
287300
github_org: 'ATIX-AG'
288301
rpm: true
@@ -296,6 +309,7 @@ foreman:
296309
rpm: true
297310
translations: true
298311
github_team: 'theforeman/statistics'
312+
redmine: true
299313
tests:
300314
github:
301315
JavaScript: js_tests.yml
@@ -313,6 +327,7 @@ foreman:
313327
rpm: true
314328
translations: foreman_tasks
315329
github_team: 'theforeman/foreman-tasks'
330+
redmine: true
316331
satellite: true
317332
tests:
318333
github:
@@ -323,6 +338,7 @@ foreman:
323338
rpm: true
324339
translations: true
325340
github_team: 'theforeman/foreman_templates'
341+
redmine: true
326342
satellite: true
327343
tests:
328344
github:
@@ -349,6 +365,7 @@ foreman:
349365
rpm_directory: 'katello'
350366
translations: true
351367
github_team: 'theforeman/virt-who-configure'
368+
redmine: virt-who-configure
352369
satellite: true
353370
tests:
354371
github:
@@ -362,6 +379,7 @@ foreman:
362379
rpm: true
363380
translations: true
364381
github_team: 'theforeman/webhooks'
382+
redmine: true
365383
satellite: true
366384
tests:
367385
github:

fpo.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class Entry:
1212
short_name: str
1313
name: str | None = None
1414
url: str | None = None
15+
redmine: str | None = None
16+
issues_url: str | None = None
1517
github_org: str = 'theforeman'
1618
installer: bool = True
1719
description: str | None = None
@@ -25,6 +27,13 @@ def __post_init__(self):
2527
self.name = self.short_name
2628
if not self.url:
2729
self.url = f'https://github.com/{self.github_org}/{self.name}'
30+
if self.redmine is True:
31+
self.redmine = self.short_name
32+
if not self.issues_url:
33+
if self.redmine:
34+
self.issues_url = f'https://projects.theforeman.org/projects/{self.redmine}/issues'
35+
else:
36+
self.issues_url = f'https://github.com/{self.github_org}/{self.name}/issues'
2837

2938

3039
class PuppetModule(Entry): # pylint: disable=too-few-public-methods

process

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def markdown_links(urls):
1717

1818

1919
def print_markdown_table(entries, i18n=True):
20-
headers = ['Name', 'Team', 'Installer', 'RPM', 'deb', 'Tests']
20+
headers = ['Name', 'Team', 'Installer', 'RPM', 'deb', 'Tests', 'Issues']
2121
if i18n:
2222
headers.append('I18n')
2323

@@ -30,6 +30,7 @@ def print_markdown_table(entries, i18n=True):
3030
markdown_link('RPM', entry.rpm_url),
3131
markdown_link('deb', entry.deb_url),
3232
markdown_links(entry.test_urls),
33+
markdown_link('Issues', entry.issues_url),
3334
]
3435
if i18n:
3536
row.append(markdown_link('i18n', entry.translations))

0 commit comments

Comments
 (0)