diff --git a/config.yaml b/config.yaml index 778c856..20a8523 100644 --- a/config.yaml +++ b/config.yaml @@ -14,6 +14,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/ansible' + redmine: true satellite: true tests: github: @@ -24,6 +25,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/azure' + redmine: azurerm satellite: true tests: github: @@ -33,6 +35,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/bootdisk' + redmine: true satellite: true tests: github: @@ -64,6 +67,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/discovery' + redmine: true satellite: true tests: github: @@ -101,6 +105,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/google' + redmine: foreman_google satellite: true tests: github: @@ -129,6 +134,7 @@ foreman: translations: true github_org: 'Katello' rpm_directory: 'katello' + redmine: true satellite: true tests: github: @@ -145,6 +151,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/kubevirt' + redmine: true satellite: true tests: github: @@ -153,6 +160,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/foreman_leapp' + redmine: true satellite: true tests: github: @@ -184,6 +192,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/openscap' + redmine: foreman_openscap satellite: true tests: github: @@ -199,6 +208,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/puppet' + redmine: foreman_puppet satellite: true tests: github: @@ -218,6 +228,7 @@ foreman: puppet_acceptance_tests: 'foreman_rex_cockpit' translations: true github_team: 'theforeman/remote-execution' + redmine: foreman_remote_execution satellite: true tests: github: @@ -254,6 +265,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/salt' + redmine: true tests: github: Ruby: ruby_tests.yml @@ -271,6 +283,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/foreman-setup' + redmine: foreman_setup snapshot_management: github_org: 'ATIX-AG' rpm: true @@ -284,6 +297,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/statistics' + redmine: true tests: github: JavaScript: js_tests.yml @@ -301,6 +315,7 @@ foreman: rpm: true translations: foreman_tasks github_team: 'theforeman/foreman-tasks' + redmine: true satellite: true tests: github: @@ -311,6 +326,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/foreman_templates' + redmine: true satellite: true tests: github: @@ -337,6 +353,7 @@ foreman: rpm_directory: 'katello' translations: true github_team: 'theforeman/virt-who-configure' + redmine: virt-who-configure satellite: true tests: github: @@ -350,6 +367,7 @@ foreman: rpm: true translations: true github_team: 'theforeman/webhooks' + redmine: true satellite: true tests: github: diff --git a/fpo.py b/fpo.py index b15bbba..5c5b741 100755 --- a/fpo.py +++ b/fpo.py @@ -12,6 +12,8 @@ class Entry: short_name: str name: str | None = None url: str | None = None + redmine: str | None = None + issues_url: str | None = None github_org: str = 'theforeman' installer: bool = True description: str | None = None @@ -25,6 +27,13 @@ def __post_init__(self): self.name = self.short_name if not self.url: self.url = f'https://github.com/{self.github_org}/{self.name}' + if self.redmine is True: + self.redmine = self.short_name + if not self.issues_url: + if self.redmine: + self.issues_url = f'https://projects.theforeman.org/projects/{self.redmine}/issues' + else: + self.issues_url = f'https://github.com/{self.github_org}/{self.name}/issues' class PuppetModule(Entry): # pylint: disable=too-few-public-methods diff --git a/process b/process index c7469a8..65ce672 100755 --- a/process +++ b/process @@ -17,7 +17,7 @@ def markdown_links(urls): def print_markdown_table(entries, i18n=True): - headers = ['Name', 'Team', 'Installer', 'RPM', 'deb', 'Tests'] + headers = ['Name', 'Team', 'Installer', 'RPM', 'deb', 'Tests', 'Issues'] if i18n: headers.append('I18n') @@ -30,6 +30,7 @@ def print_markdown_table(entries, i18n=True): markdown_link('RPM', entry.rpm_url), markdown_link('deb', entry.deb_url), markdown_links(entry.test_urls), + markdown_link('Issues', entry.issues_url), ] if i18n: row.append(markdown_link('i18n', entry.translations))