Skip to content

Conversation

@polasudo
Copy link
Contributor

@polasudo polasudo commented Nov 20, 2025

This PR updates the wiki page generator to:

  • Remove 'Pending Updates' column from workspace table
  • Add pending PR detection and display with warning icon
  • Include clickable PR links in the workspace overview
    RHIDP-9450

Assisted-by: Cursor

- Add GitHub Actions workflow to update wiki pages on pushes to main and release branches
- Add Python script to generate wiki content documenting all workspaces
- Configure workflow to check upstream repository for pending PRs
- Remove unnecessary fetch-depth setting
- Create wiki-test branch to store generated wiki pages
- Push to test branch for demonstration purposes
- Avoid wiki repository creation issues
- Replace slashes with dashes in branch names to avoid file path issues
- Fixes error when creating wiki pages for feature branches
- Replace '/' with '-' in branch names when creating wiki pages
- Update workflow to use sanitized branch name for file operations
- Temporarily enable workflow on feature/RHIDP-9450 for testing
The issue was that git diff was checking for changes before staging the file.
New untracked files don't show up in git diff, so the script would exit early.
Now we stage the file first, then check git diff --cached for staged changes.
- Remove debug echo statements from workflow
- Remove temporary feature/RHIDP-9450 branch trigger
- Clean up workflow for production use
- Replace individual workspace sections with a compact table
- Table shows: Workspace, Source Repo, Pinned Commit, Backstage Version, Plugins count, Pending Updates
- Keep detailed information in separate section below table
- Fix datetime deprecation warning by using timezone.utc
Remove the temporary feature/RHIDP-9450 branch trigger that was added for testing
- Workspace column: links to overlay repo workspaces
- Source column: repo@commit format linking to source workspace
- Handle flat repos (link to root) vs workspace repos (link to workspace folder)
- Maintain compact table format with key information
- Remove 'Pinned Commit' column (info now in Source column)
- Add 'Commit Date' column
- Update 'Source' column format: owner/repo@commit
- Update 'Plugins' column: show list of plugins instead of count
- Fetch package.json from source to get plugin name and version if possible
- Add repo structure icon (🌳/📄) with link to source.json and tooltip
- Format date to show only YYYY-MM-DD
- List plugins with package name and version
- Keep compact table layout
- Ensure links work correctly for all repo types
- Patches: '🩹 Has patches' instead of just icon
- Overlays: '🔄 Has overlays' instead of just icon
- Support: '✅ Supported' / '🤝 Community' instead of just icons
- Use <br> to stack badges in Type column
- Show '🔴 Missing metadata' instead of just red circle
- Stack label above workspace name using <br> for clarity
- Remove metadata indicator from workspace name
- Add dedicated 'Metadata' column showing '✅ Available' or '🔴 Missing'
- Keep workspace names clean while clearly indicating metadata status
- Show '❓ Unknown' for plugins not listed in rhdh-supported-plugins.txt or rhdh-community-plugins.txt
- Makes it clear when plugins have undefined support status
- Improves table clarity by explicitly labeling all plugins
- Replace <br> line breaks with • bullet points for better readability
- Keep full text labels (✅ Supported, 🤝 Community)
- Make plugin lists more compact and scannable in table cells
- Use <br> line breaks with 🔸 bullet points for better readability
- Keep vertical layout but make it more prominent
- Each plugin on its own line with clear visual separation
- Add base branch filtering to gh pr list to only show PRs targeting the current branch
- Update jq query to correctly check if any file in the PR touches the workspace path
- Pass branch_name to check_pending_prs function
- Remove 'Pending Updates' column from workspace table
- Add pending PR detection and display with warning icon
- Include clickable PR links in the workspace overview
- Combine structure, overlays, patches, metadata, and pending PRs into the Type column with tooltips and links
- Remove redundant metadata column and detailed section to keep table compact
- Fetch upstream backstage version and highlight when overlay overrides it
- Improve plugin list readability with bullet-styled line breaks
- Filter pending PRs by base branch
- Filter pending PRs by workspace_addition or workspace_update labels
- Ensures only relevant workspace PRs are shown in the wiki table
- Already filtering by target branch and workspace path
- Remove separate Pending Updates column to save space
- Add red circle icon (🔴) in Type column when PR exists
- Icon links directly to the PR and shows tooltip with PR number
- Cleaner icon-based indicators with tooltips for all status items
- Table now has 6 columns instead of 7
- Always display source repo version from backstage.json at pinned commit
- Show version in orange (#ff6b35) when overlay overrides it
- Add tooltip explaining the override (upstream version -> overlay version)
- Normal black text when no override exists
- Shorten column headers: 'Type' -> '🔍', 'Commit Date' -> 'Date', 'Backstage Version' -> 'Backstage'
- Use <sub> tags for commit dates to reduce text size
- Remove detailed workspace information section (already done)
- Table now fits better on standard screen widths
- Commit date is visible when clicking through to the source link
- Reduces table width for better screen fit
- Table now has 5 columns: Type, Workspace, Source, Backstage Version, Plugins
- Use 🔴 for Red Hat Supported (with tooltip)
- Use 🟡 for Community/DevPreview (with tooltip)
- Use ▪️ for Pure Community/Unknown (with tooltip)
- Remove text labels to save space
- Format: <Icon> <PackageName@Version>
- Change Red Hat Supported icon from 🔴 to 🟢 to avoid confusion with error/warning states
- 🟢 = Supported (Safe/Stable)
- 🟡 = Community (Preview/Caution)
- ▪️ = Unknown (Neutral)
- Fix incorrect package.json fetching for workspace-based repos by prepending workspaces/{name}/
- Reduce plugin list text size using <sub> tags for better table fit
@polasudo polasudo requested a review from gashcrumb as a code owner November 20, 2025 07:58
@polasudo polasudo requested review from a team and kadel as code owners November 20, 2025 07:58
@polasudo polasudo changed the title Update wiki page generator to show pending PRs with links feat: Update wiki page generator to show pending PRs with links Nov 20, 2025
@github-actions github-actions bot added the non-workspace-changes PR changes files outside workspace directories label Nov 21, 2025
@polasudo
Copy link
Contributor Author

/publish

@github-actions
Copy link
Contributor

PR action (/publish) cancelled: PR doesn't touch only 1 workspace.

Filters by:
- Base branch (target_branch)
- Files touching the workspace path
- Labels: workspace_addition or workspace_update
Copy link
Member

Choose a reason for hiding this comment

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

I guess that here it can be only workspace-update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

non-workspace-changes PR changes files outside workspace directories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants