Skip to content
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
18 changes: 18 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ foreman:
rpm: true
translations: true
github_team: 'theforeman/ansible'
redmine: true
satellite: true
tests:
github:
Expand All @@ -24,6 +25,7 @@ foreman:
rpm: true
translations: true
github_team: 'theforeman/azure'
redmine: azurerm
satellite: true
tests:
github:
Expand All @@ -33,6 +35,7 @@ foreman:
rpm: true
translations: true
github_team: 'theforeman/bootdisk'
redmine: true
satellite: true
tests:
github:
Expand Down Expand Up @@ -64,6 +67,7 @@ foreman:
rpm: true
translations: true
github_team: 'theforeman/discovery'
redmine: true
satellite: true
tests:
github:
Expand Down Expand Up @@ -101,6 +105,7 @@ foreman:
rpm: true
translations: true
github_team: 'theforeman/google'
redmine: foreman_google
satellite: true
tests:
github:
Expand Down Expand Up @@ -129,6 +134,7 @@ foreman:
translations: true
github_org: 'Katello'
rpm_directory: 'katello'
redmine: true
satellite: true
tests:
github:
Expand All @@ -145,6 +151,7 @@ foreman:
rpm: true
translations: true
github_team: 'theforeman/kubevirt'
redmine: true
satellite: true
tests:
github:
Expand All @@ -153,6 +160,7 @@ foreman:
rpm: true
translations: true
github_team: 'theforeman/foreman_leapp'
redmine: true
satellite: true
tests:
github:
Expand Down Expand Up @@ -184,6 +192,7 @@ foreman:
rpm: true
translations: true
github_team: 'theforeman/openscap'
redmine: foreman_openscap
satellite: true
tests:
github:
Expand All @@ -199,6 +208,7 @@ foreman:
rpm: true
translations: true
github_team: 'theforeman/puppet'
redmine: foreman_puppet
satellite: true
tests:
github:
Expand All @@ -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:
Expand Down Expand Up @@ -254,6 +265,7 @@ foreman:
rpm: true
translations: true
github_team: 'theforeman/salt'
redmine: true
tests:
github:
Ruby: ruby_tests.yml
Expand All @@ -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
Expand All @@ -284,6 +297,7 @@ foreman:
rpm: true
translations: true
github_team: 'theforeman/statistics'
redmine: true
tests:
github:
JavaScript: js_tests.yml
Expand All @@ -301,6 +315,7 @@ foreman:
rpm: true
translations: foreman_tasks
github_team: 'theforeman/foreman-tasks'
redmine: true
satellite: true
tests:
github:
Expand All @@ -311,6 +326,7 @@ foreman:
rpm: true
translations: true
github_team: 'theforeman/foreman_templates'
redmine: true
satellite: true
tests:
github:
Expand All @@ -337,6 +353,7 @@ foreman:
rpm_directory: 'katello'
translations: true
github_team: 'theforeman/virt-who-configure'
redmine: virt-who-configure
satellite: true
tests:
github:
Expand All @@ -350,6 +367,7 @@ foreman:
rpm: true
translations: true
github_team: 'theforeman/webhooks'
redmine: true
satellite: true
tests:
github:
Expand Down
9 changes: 9 additions & 0 deletions fpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion process
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand All @@ -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),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

After merging this I looked at the result and wondered if we should say where it points to: GH or Redmine. Not sure if it helps, but noting it down here.

Copy link
Copy Markdown
Member Author

@evgeni evgeni Feb 12, 2026

Choose a reason for hiding this comment

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

you mean something like

Suggested change
markdown_link('Issues', entry.issues_url),
markdown_link('Redmine' if entry.redmine else 'GitHub', entry.issues_url),

or even further

def issues_link(issues_url):
  if 'github.com' in issues_url:
    issues_label = 'GitHub'
  elif 'projects.theforeman.org' in issues_url:
    issues_label = 'Redmine'
  else:
    issues_label = 'Issues'
  return markdown_link(issues_label, issues_url)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

#44

]
if i18n:
row.append(markdown_link('i18n', entry.translations))
Expand Down